Fixed detecting PS4 wired controller on Windows
authorSam Lantinga
Wed, 27 May 2015 10:29:43 -0700
changeset 9654b9488c689ce3
parent 9653 0a2de253c67e
child 9655 5c55c6567bdc
Fixed detecting PS4 wired controller on Windows
src/joystick/windows/SDL_dinputjoystick.c
     1.1 --- a/src/joystick/windows/SDL_dinputjoystick.c	Tue May 26 22:57:42 2015 -0400
     1.2 +++ b/src/joystick/windows/SDL_dinputjoystick.c	Wed May 27 10:29:43 2015 -0700
     1.3 @@ -342,7 +342,7 @@
     1.4      JoyStick_DeviceData *pPrevJoystick = NULL;
     1.5      const DWORD devtype = (pdidInstance->dwDevType & 0xFF);
     1.6  
     1.7 -    if ((devtype != DI8DEVTYPE_JOYSTICK) && (devtype != DI8DEVTYPE_GAMEPAD)) {
     1.8 +    if ((devtype != DI8DEVTYPE_JOYSTICK) && (devtype != DI8DEVTYPE_GAMEPAD) && (devtype != DI8DEVTYPE_1STPERSON)) {
     1.9          return DIENUM_CONTINUE;  /* Ignore touchpads, etc. */
    1.10      }
    1.11