gdi: allow compilation without DirectInput8 for NT

This commit is contained in:
Brad Parker 2017-09-04 14:18:50 -04:00
parent 455a455d9f
commit 47f3a801ba

View File

@ -238,8 +238,13 @@ static void gfx_ctx_gdi_input_driver(void *data,
}
#endif
#ifdef HAVE_DINPUT
dinput_gdi = input_dinput.init(joypad_name);
*input = dinput_gdi ? &input_dinput : NULL;
#else
dinput_gdi = NULL;
*input = NULL;
#endif
*input_data = dinput_gdi;
}