mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-27 08:15:33 +01:00
Merge pull request #1601 from RachelBryk/wiimote-hotkey2
Fix wiimote connect hotkeys.
This commit is contained in:
commit
c2e5715034
@ -1195,8 +1195,9 @@ void CFrame::OnKeyDown(wxKeyEvent& event)
|
|||||||
// Actually perform the wiimote connection or disconnection
|
// Actually perform the wiimote connection or disconnection
|
||||||
if (WiimoteId >= 0)
|
if (WiimoteId >= 0)
|
||||||
{
|
{
|
||||||
bool connect = !GetMenuBar()->IsChecked(IDM_CONNECT_WIIMOTE1 + WiimoteId);
|
wxCommandEvent evt;
|
||||||
ConnectWiimote(WiimoteId, connect);
|
evt.SetId(IDM_CONNECT_WIIMOTE1 + WiimoteId);
|
||||||
|
OnConnectWiimote(evt);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (g_Config.bFreeLook)
|
if (g_Config.bFreeLook)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user