mirror of
https://github.com/yawut/SDL.git
synced 2026-07-08 20:54:39 -05:00
Minor fix for if SDL_JoystickInit is called more than once without a matching SDL_JoystickQuit.
--HG-- branch : iOS-improvements
This commit is contained in:
parent
9e004cf9cb
commit
fc867e8e30
|
|
@ -49,7 +49,7 @@ SDL_SYS_JoystickInit(void)
|
|||
const char *hint = SDL_GetHint(SDL_HINT_ACCELEROMETER_AS_JOYSTICK);
|
||||
if (!hint || SDL_atoi(hint)) {
|
||||
/* Default behavior, accelerometer as joystick */
|
||||
numjoysticks++;
|
||||
numjoysticks = 1;
|
||||
}
|
||||
|
||||
return numjoysticks;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user