- make sure to send a joy removed event even if the joystick wasn't opened under OSX
This commit is contained in:
parent
7849e997f6
commit
3bf28ba7c8
2 changed files with 52 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue