Cleanly closing opened joysticks.
This commit is contained in:
parent
64c033021a
commit
84dc5d98ef
|
@ -118,9 +118,10 @@ void set_kb_keys(u16 kbCfg[])
|
||||||
/* Unload joysticks */
|
/* Unload joysticks */
|
||||||
void uninit_joy()
|
void uninit_joy()
|
||||||
{
|
{
|
||||||
/* FIXME: Should we Close all joysticks?
|
int i;
|
||||||
SDL_JoystickClose( ... );
|
printf("Disabling joystick support.\n");
|
||||||
*/
|
for (i = 0; i < SDL_NumJoysticks(); i++)
|
||||||
|
SDL_JoystickClose(i);
|
||||||
SDL_QuitSubSystem(SDL_INIT_JOYSTICK);
|
SDL_QuitSubSystem(SDL_INIT_JOYSTICK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue