Explorar o código

Allow using the game controller API with arcade sticks and other XInput devices

Sam Lantinga %!s(int64=10) %!d(string=hai) anos
pai
achega
1c2beb2180
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/joystick/windows/SDL_xinputjoystick.c

+ 1 - 1
src/joystick/windows/SDL_xinputjoystick.c

@@ -376,7 +376,7 @@ SDL_SYS_IsXInputGamepad_DeviceIndex(int device_index)
     for (index = device_index; index > 0; index--)
         device = device->pNext;
 
-    return (device->SubType == XINPUT_DEVSUBTYPE_GAMEPAD);
+    return device->bXInputDevice;
 }
 
 #else /* !SDL_JOYSTICK_XINPUT */