src/joystick/windows/SDL_dinputjoystick.c
changeset 9654 b9488c689ce3
parent 9619 b94b6d0bff0f
child 9658 9753468b5c0e
equal deleted inserted replaced
9653:0a2de253c67e 9654:b9488c689ce3
   340 {
   340 {
   341     JoyStick_DeviceData *pNewJoystick;
   341     JoyStick_DeviceData *pNewJoystick;
   342     JoyStick_DeviceData *pPrevJoystick = NULL;
   342     JoyStick_DeviceData *pPrevJoystick = NULL;
   343     const DWORD devtype = (pdidInstance->dwDevType & 0xFF);
   343     const DWORD devtype = (pdidInstance->dwDevType & 0xFF);
   344 
   344 
   345     if ((devtype != DI8DEVTYPE_JOYSTICK) && (devtype != DI8DEVTYPE_GAMEPAD)) {
   345     if ((devtype != DI8DEVTYPE_JOYSTICK) && (devtype != DI8DEVTYPE_GAMEPAD) && (devtype != DI8DEVTYPE_1STPERSON)) {
   346         return DIENUM_CONTINUE;  /* Ignore touchpads, etc. */
   346         return DIENUM_CONTINUE;  /* Ignore touchpads, etc. */
   347     }
   347     }
   348 
   348 
   349     if (SDL_IsXInputDevice(&pdidInstance->guidProduct)) {
   349     if (SDL_IsXInputDevice(&pdidInstance->guidProduct)) {
   350         return DIENUM_CONTINUE;  /* ignore XInput devices here, keep going. */
   350         return DIENUM_CONTINUE;  /* ignore XInput devices here, keep going. */