Skip to content
Permalink
Browse files
Fixed detecting PS4 wired controller on Windows
  • Loading branch information
slouken committed May 27, 2015
1 parent 80cfccb commit 7f17e0ab9ea98032da1947a38d4f6a5885095d64
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/joystick/windows/SDL_dinputjoystick.c
@@ -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. */
}

0 comments on commit 7f17e0a

Please sign in to comment.