Fixed SDL_HapticOpened() returning -1 instead of 0.
According to header file it should only return 0 or 1.
This commit is contained in:
parent
dc646c6468
commit
41edaa9b20
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue