Skip to content

Commit

Permalink
Fixed detecting PS4 wired controller on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed May 27, 2015
1 parent 80cfccb commit 7f17e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/joystick/windows/SDL_dinputjoystick.c
Expand Up @@ -342,7 +342,7 @@ EnumJoysticksCallback(const DIDEVICEINSTANCE * pdidInstance, VOID * pContext)
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. */
}

Expand Down

0 comments on commit 7f17e0a

Please sign in to comment.