Fix compilation with modern Visual Studio

This commit is contained in:
Clownacy 2020-02-13 18:14:30 +00:00
parent fd19806eaf
commit a7f1d80a06

View file

@ -87,7 +87,11 @@ BOOL FindAndOpenDirectInputDevice(HWND hWnd)
directinput_objects.lpDI->AddRef();
#if defined(_MSC_VER) && _MSC_VER >= 1500
lpDI->EnumDevices(DI8DEVTYPE_JOYSTICK, EnumDevices_Callback, &directinput_objects, DIEDFL_ATTACHEDONLY);
#else
lpDI->EnumDevices(DIDEVTYPE_JOYSTICK, EnumDevices_Callback, &directinput_objects, DIEDFL_ATTACHEDONLY);
#endif
if (directinput_objects.lpDI != NULL)
{