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:
Philipp Wiesemann 2013-05-01 11:32:05 +02:00
parent f19e013294
commit 2b271666be

View file

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