Allow using the game controller API with arcade sticks and other XInput devices
authorSam Lantinga <slouken@libsdl.org>
Tue, 16 Feb 2016 13:47:37 -0800
changeset 10074 1b9a2beb3e02
parent 10073 2455bf5d1866
child 10075 58e8f9bfa99b
Allow using the game controller API with arcade sticks and other XInput devices
src/joystick/windows/SDL_xinputjoystick.c
--- a/src/joystick/windows/SDL_xinputjoystick.c	Tue Feb 16 20:32:22 2016 +0100
+++ b/src/joystick/windows/SDL_xinputjoystick.c	Tue Feb 16 13:47:37 2016 -0800
@@ -376,7 +376,7 @@
     for (index = device_index; index > 0; index--)
         device = device->pNext;
 
-    return (device->SubType == XINPUT_DEVSUBTYPE_GAMEPAD);
+    return device->bXInputDevice;
 }
 
 #else /* !SDL_JOYSTICK_XINPUT */