mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-05 09:26:25 +00:00
Fixed signatures for internal haptics functions
This commit is contained in:
@@ -223,9 +223,7 @@ SDL_bool SDL_IsJoystickHaptic(SDL_Joystick *joystick)
|
||||
/* Must be a valid joystick */
|
||||
if (SDL_IsJoystickValid(joystick) &&
|
||||
!SDL_IsGamepad(SDL_GetJoystickInstanceID(joystick))) {
|
||||
if (SDL_SYS_JoystickIsHaptic(joystick) > 0) {
|
||||
result = SDL_TRUE;
|
||||
}
|
||||
result = SDL_SYS_JoystickIsHaptic(joystick);
|
||||
}
|
||||
}
|
||||
SDL_UnlockJoysticks();
|
||||
|
Reference in New Issue
Block a user