Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

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.
  • Loading branch information
philippwiesemann committed May 1, 2013
1 parent 6aab025 commit 7c9c3955198f865a3a485f7e0f5c55a2b23fc1e2
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/haptic/SDL_haptic.c
@@ -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;

0 comments on commit 7c9c395

Please sign in to comment.