mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-29 20:27:12 +01:00
Minor fix for if SDL_JoystickInit is called more than once without a matching SDL_JoystickQuit.
This commit is contained in:
parent
1506b3b8fb
commit
c81ce5a0a8
@ -49,7 +49,7 @@ SDL_SYS_JoystickInit(void)
|
|||||||
const char *hint = SDL_GetHint(SDL_HINT_ACCELEROMETER_AS_JOYSTICK);
|
const char *hint = SDL_GetHint(SDL_HINT_ACCELEROMETER_AS_JOYSTICK);
|
||||||
if (!hint || SDL_atoi(hint)) {
|
if (!hint || SDL_atoi(hint)) {
|
||||||
/* Default behavior, accelerometer as joystick */
|
/* Default behavior, accelerometer as joystick */
|
||||||
numjoysticks++;
|
numjoysticks = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return numjoysticks;
|
return numjoysticks;
|
||||||
|
Loading…
Reference in New Issue
Block a user