Fixed detecting PS4 wired controller on Windows

This commit is contained in:
Sam Lantinga 2015-05-27 10:29:43 -07:00
parent 80cfccbf8d
commit 7f17e0ab9e

View File

@ -342,7 +342,7 @@ EnumJoysticksCallback(const DIDEVICEINSTANCE * pdidInstance, VOID * pContext)
JoyStick_DeviceData *pPrevJoystick = NULL; JoyStick_DeviceData *pPrevJoystick = NULL;
const DWORD devtype = (pdidInstance->dwDevType & 0xFF); const DWORD devtype = (pdidInstance->dwDevType & 0xFF);
if ((devtype != DI8DEVTYPE_JOYSTICK) && (devtype != DI8DEVTYPE_GAMEPAD)) { if ((devtype != DI8DEVTYPE_JOYSTICK) && (devtype != DI8DEVTYPE_GAMEPAD) && (devtype != DI8DEVTYPE_1STPERSON)) {
return DIENUM_CONTINUE; /* Ignore touchpads, etc. */ return DIENUM_CONTINUE; /* Ignore touchpads, etc. */
} }