WiimoteReal: Improve state changes and minor code cleanups.

This commit is contained in:
Jordan Woyak 2019-03-07 18:44:23 -06:00
parent 909e9322e7
commit 49218c32ed
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();