mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-05 09:26:25 +00:00
Include stdbool.h when using Visual Studio 2017+
Also cleaned up some incorrect return values from bool functions.
This commit is contained in:
@@ -518,7 +518,7 @@ bool SDL_GetHapticEffectStatus(SDL_Haptic *haptic, int effect)
|
||||
|
||||
SDL_ClearError();
|
||||
|
||||
return SDL_SYS_HapticGetEffectStatus(haptic, &haptic->effects[effect]);
|
||||
return (SDL_SYS_HapticGetEffectStatus(haptic, &haptic->effects[effect]) > 0);
|
||||
}
|
||||
|
||||
bool SDL_SetHapticGain(SDL_Haptic *haptic, int gain)
|
||||
|
Reference in New Issue
Block a user