mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-28 21:08:04 +03:00
WiimoteReal: Improve state changes and minor code cleanups.
This commit is contained in:
parent
909e9322e7
commit
49218c32ed
10 changed files with 185 additions and 191 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue