ControllerInterface: Get rid of SetHwnd(), introduce Reinitialize()

Initialize now just takes the handle directly. Reinitialize is added because it is much more straightforward in comparison to doing the Shutdown-Initialize manually.
This commit is contained in:
Lioncash
2014-10-13 12:45:47 -04:00
parent 8912315596
commit b7b2074cc2
5 changed files with 21 additions and 24 deletions

View File

@ -745,8 +745,7 @@ void GamepadPage::RefreshDevices(wxCommandEvent&)
std::lock_guard<std::recursive_mutex> lk(m_config.controls_lock);
// refresh devices
g_controller_interface.Shutdown();
g_controller_interface.Initialize();
g_controller_interface.Reinitialize();
// update all control references
m_config_dialog->UpdateControlReferences();