mirror of
https://github.com/yawut/SDL.git
synced 2026-08-13 20:46:51 -05:00
Fixed SDL_HapticQuery() returning -1 as unsigned int if device is not valid.
The function now returns 0 which is the same as if no effects were supported. This may be confusing in rare situations but will not matter most of the time.
This commit is contained in:
@@ -397,7 +397,7 @@ unsigned int
|
||||
SDL_HapticQuery(SDL_Haptic * haptic)
|
||||
{
|
||||
if (!ValidHaptic(haptic)) {
|
||||
return -1;
|
||||
return 0; /* same as if no effects were supported */
|
||||
}
|
||||
|
||||
return haptic->supported;
|
||||
|
||||
Reference in New Issue
Block a user