Fixed detecting PS4 wired controller on Windows
authorSam Lantinga <slouken@libsdl.org>
Wed, 27 May 2015 10:29:43 -0700
changeset 9654 b9488c689ce3
parent 9653 0a2de253c67e
child 9655 5c55c6567bdc
Fixed detecting PS4 wired controller on Windows
src/joystick/windows/SDL_dinputjoystick.c
--- a/src/joystick/windows/SDL_dinputjoystick.c	Tue May 26 22:57:42 2015 -0400
+++ b/src/joystick/windows/SDL_dinputjoystick.c	Wed May 27 10:29:43 2015 -0700
@@ -342,7 +342,7 @@
     JoyStick_DeviceData *pPrevJoystick = NULL;
     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. */
     }