diff options
| author | Tilka <tilkax@gmail.com> | 2024-08-27 18:54:52 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-27 18:54:52 +0100 |
| commit | 22ed1dddca72d7e2d29efdc287238e17b36a82f0 (patch) | |
| tree | 19a76fa63bdc7b8c3eebbb23f23fb428f35e169f /Source/Core | |
| parent | 27c71017fadd7c263acf193341075221f5cb9bb6 (diff) | |
| parent | 16bf5a86d37ed3cdd9ab85ae95de493502c586eb (diff) | |
Merge pull request #13037 from Dentomologist/hotkeyscheduler_handle_wiimote_connections_independently
HotkeyScheduler: Handle Wii Remote connections independently
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DolphinQt/HotkeyScheduler.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/Source/Core/DolphinQt/HotkeyScheduler.cpp b/Source/Core/DolphinQt/HotkeyScheduler.cpp index 232f41c2f8..bc441dcef4 100644 --- a/Source/Core/DolphinQt/HotkeyScheduler.cpp +++ b/Source/Core/DolphinQt/HotkeyScheduler.cpp @@ -277,20 +277,16 @@ void HotkeyScheduler::Run() if (Core::System::GetInstance().IsWii()) { - int wiimote_id = -1; if (IsHotkey(HK_WIIMOTE1_CONNECT)) - wiimote_id = 0; + emit ConnectWiiRemote(0); if (IsHotkey(HK_WIIMOTE2_CONNECT)) - wiimote_id = 1; + emit ConnectWiiRemote(1); if (IsHotkey(HK_WIIMOTE3_CONNECT)) - wiimote_id = 2; + emit ConnectWiiRemote(2); if (IsHotkey(HK_WIIMOTE4_CONNECT)) - wiimote_id = 3; + emit ConnectWiiRemote(3); if (IsHotkey(HK_BALANCEBOARD_CONNECT)) - wiimote_id = 4; - - if (wiimote_id > -1) - emit ConnectWiiRemote(wiimote_id); + emit ConnectWiiRemote(4); if (IsHotkey(HK_TOGGLE_SD_CARD)) Settings::Instance().SetSDCardInserted(!Settings::Instance().IsSDCardInserted()); |
