Merge pull request #7871 from jordan-woyak/wm-real-cleanup

WiimoteReal: Improve state changes and code cleanups.
This commit is contained in:
JMC47
2019-03-25 19:28:22 -04:00
committed by GitHub
10 changed files with 185 additions and 191 deletions

View File

@ -496,11 +496,8 @@ void ControllersWindow::SaveSettings()
for (size_t i = 0; i < m_wiimote_groups.size(); i++)
{
const int index = m_wiimote_boxes[i]->currentIndex();
g_wiimote_sources[i] = index;
m_wiimote_buttons[i]->setEnabled(index != 0 && index != 2);
if (Core::IsRunning())
WiimoteReal::ChangeWiimoteSource(static_cast<u32>(i), index);
WiimoteReal::ChangeWiimoteSource(static_cast<u32>(i), index);
}
UICommon::SaveWiimoteSources();