mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-26 12:59:18 +01:00
Allow using the game controller API with arcade sticks and other XInput devices
This commit is contained in:
parent
9cd9925cc9
commit
1c2beb2180
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user