Cleanly closing opened joysticks.

This commit is contained in:
evilynux 2007-04-21 17:34:03 +00:00
parent 64c033021a
commit 84dc5d98ef
1 changed files with 4 additions and 3 deletions

View File

@ -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);
} }