Improve the SDL/XInput hackery of my last commit. Fixes the device refresh button crash.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5628 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Jordan Woyak 2010-06-06 06:28:18 +00:00
parent 08636392b6
commit 0af55bd85b
2 changed files with 20 additions and 18 deletions

View file

@ -600,7 +600,8 @@ void GamepadPage::RefreshDevices( wxCommandEvent& event )
g_plugin->controls_crit.Enter(); // enter
// refresh devices
g_plugin->controller_interface.DeInit();
// TODO: remove hackery of not deinting SDL
g_plugin->controller_interface.DeInit(true);
g_plugin->controller_interface.Init();
// update all control references