Fixed signatures for internal haptics functions

This commit is contained in:
Sam Lantinga
2024-06-05 10:09:02 -07:00
parent f879411627
commit 26fc7a8060
7 changed files with 28 additions and 33 deletions

View File

@@ -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();