Merge pull request #13037 from Dentomologist/hotkeyscheduler_handle_wiimote_connections_independently
HotkeyScheduler: Handle Wii Remote connections independently
This commit is contained in:
commit
22ed1dddca
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue