Fix invalid calls to dinput_handle_message when input driver is not set to dinput

This commit is contained in:
Bernhard Schelling 2020-07-09 22:32:43 +09:00
parent 4c5f4b244a
commit e0a9ded6a3

View File

@ -1092,6 +1092,7 @@ LRESULT CALLBACK WndProcWGL(HWND hwnd, UINT message,
taskbar_is_created = true;
#endif
#ifdef HAVE_DINPUT
if (input_get_ptr() == &input_dinput)
{
void* input_data = input_get_data();
if (input_data && dinput_handle_message(input_data,
@ -1155,6 +1156,7 @@ LRESULT CALLBACK WndProcGDI(HWND hwnd, UINT message,
taskbar_is_created = true;
#endif
#ifdef HAVE_DINPUT
if (input_get_ptr() == &input_dinput)
{
void* input_data = input_get_data();
if (input_data && dinput_handle_message(input_data,