mirror of
https://github.com/encounter/SDL.git
synced 2025-12-09 13:37:56 +00:00
Allow using the game controller API with arcade sticks and other XInput devices
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user