Skip to content

Commit

Permalink
Allow using the game controller API with arcade sticks and other XInp…
Browse files Browse the repository at this point in the history
…ut devices
  • Loading branch information
slouken committed Feb 16, 2016
1 parent 9cd9925 commit 1c2beb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/joystick/windows/SDL_xinputjoystick.c
Expand Up @@ -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 */
Expand Down

0 comments on commit 1c2beb2

Please sign in to comment.