mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-14 00:58:51 +02:00
WiimoteReal: Improve state changes and minor code cleanups.
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user