Patched to compile on Windows.

This commit is contained in:
Ryan C. Gordon 2013-10-20 16:01:10 -04:00
parent b285b60092
commit a614f18666
1 changed files with 1 additions and 1 deletions

View File

@ -636,7 +636,7 @@ SDL_SYS_JoystickIsHaptic(SDL_Joystick * joystick)
int
SDL_SYS_JoystickSameHaptic(SDL_Haptic * haptic, SDL_Joystick * joystick)
{
if ((joystick->hwdata->bXInputHaptic != haptic->hwdata->bXInputHaptic) {
if (joystick->hwdata->bXInputHaptic != haptic->hwdata->bXInputHaptic) {
return 0; /* one is XInput, one is not; not the same device. */
} else if (joystick->hwdata->bXInputHaptic) { /* XInput */
return (haptic->hwdata->userid == joystick->hwdata->userid);