mirror of
https://github.com/yawut/SDL.git
synced 2026-08-27 19:24:30 -05:00
Fixed SDL_HapticOpened() returning -1 instead of 0.
According to header file it should only return 0 or 1.
This commit is contained in:
@@ -182,7 +182,7 @@ SDL_HapticOpened(int device_index)
|
||||
if ((device_index < 0) || (device_index >= SDL_numhaptics)) {
|
||||
SDL_SetError("Haptic: There are %d haptic devices available",
|
||||
SDL_numhaptics);
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
opened = 0;
|
||||
|
||||
Reference in New Issue
Block a user