ControllerInterface: replace Reinitialize with RefreshDevices

The SDL backend crashes when you close a joystick after SDL_Quit has
been called. Some backends don't need to be shutdown and
re-initialized everytime, we can just ask to enumerate devices again.
This commit is contained in:
Michael Maltese
2016-10-16 13:39:05 -07:00
parent cebb4d84f2
commit 3e69d066f5
21 changed files with 79 additions and 25 deletions

View File

@ -894,7 +894,7 @@ void InputConfigDialog::RefreshDevices(wxCommandEvent&)
bool was_unpaused = Core::PauseAndLock(true);
// refresh devices
g_controller_interface.Reinitialize();
g_controller_interface.RefreshDevices();
// update all control references
UpdateControlReferences();