- make sure to send a joy removed event even if the joystick wasn't opened under OSX

This commit is contained in:
VALVE\alfred@alfredlinux.valvesoftware.com 2013-04-22 15:24:35 -07:00
parent 7849e997f6
commit 3bf28ba7c8
2 changed files with 52 additions and 5 deletions

View file

@ -629,6 +629,8 @@ SDL_JoystickUpdate(void)
joystick = joysticknext;
}
// this needs to happen AFTER walking the joystick list above, so that any
// dangling hardware data from removed devices can be free'd
SDL_SYS_JoystickDetect();
}