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:
parent
f19e013294
commit
2b271666be
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue