fix building on windows without dinput

This commit is contained in:
Brad Parker 2018-03-16 21:03:43 +00:00
parent ffbb439fb5
commit 614521b238

View File

@ -628,9 +628,11 @@ static void gfx_ctx_wgl_input_driver(void *data,
}
#endif
#ifdef HAVE_DINPUT
dinput_wgl = input_dinput.init(joypad_name);
*input = dinput_wgl ? &input_dinput : NULL;
*input_data = dinput_wgl;
#endif
}
static bool gfx_ctx_wgl_has_focus(void *data)