From 1c2beb2180472fa5309154c2a0dcd95a41ac9ce3 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 16 Feb 2016 13:47:37 -0800 Subject: [PATCH] Allow using the game controller API with arcade sticks and other XInput devices --- src/joystick/windows/SDL_xinputjoystick.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/windows/SDL_xinputjoystick.c b/src/joystick/windows/SDL_xinputjoystick.c index 2f27c47dc..3e34117e3 100644 --- a/src/joystick/windows/SDL_xinputjoystick.c +++ b/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 */