mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-04-12 10:42:01 +02:00
Patched to compile on Windows.
This commit is contained in:
parent
b285b60092
commit
a614f18666
@ -636,7 +636,7 @@ SDL_SYS_JoystickIsHaptic(SDL_Joystick * joystick)
|
|||||||
int
|
int
|
||||||
SDL_SYS_JoystickSameHaptic(SDL_Haptic * haptic, SDL_Joystick * joystick)
|
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. */
|
return 0; /* one is XInput, one is not; not the same device. */
|
||||||
} else if (joystick->hwdata->bXInputHaptic) { /* XInput */
|
} else if (joystick->hwdata->bXInputHaptic) { /* XInput */
|
||||||
return (haptic->hwdata->userid == joystick->hwdata->userid);
|
return (haptic->hwdata->userid == joystick->hwdata->userid);
|
||||||
|
Loading…
Reference in New Issue
Block a user