diff options
| author | Lioncash <mathew1800@gmail.com> | 2014-11-28 19:50:13 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2014-11-28 19:50:13 -0500 |
| commit | c2e5715034b8c97b06e68b89cd99694b2e7f7c08 (patch) | |
| tree | 11853ae8b2b71d5507ef578ed2f102780234a354 /Source/Core/DolphinWX/Frame.cpp | |
| parent | ce059769f6bf13118366f77fea926727efcf4510 (diff) | |
| parent | df9ace09859d56df28b7ca78064fa0d99d566921 (diff) | |
Merge pull request #1601 from RachelBryk/wiimote-hotkey2
Fix wiimote connect hotkeys.
Diffstat (limited to 'Source/Core/DolphinWX/Frame.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/Frame.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/DolphinWX/Frame.cpp b/Source/Core/DolphinWX/Frame.cpp index d4b7ba65f7..96752dfbcc 100644 --- a/Source/Core/DolphinWX/Frame.cpp +++ b/Source/Core/DolphinWX/Frame.cpp @@ -1195,8 +1195,9 @@ void CFrame::OnKeyDown(wxKeyEvent& event) // Actually perform the wiimote connection or disconnection if (WiimoteId >= 0) { - bool connect = !GetMenuBar()->IsChecked(IDM_CONNECT_WIIMOTE1 + WiimoteId); - ConnectWiimote(WiimoteId, connect); + wxCommandEvent evt; + evt.SetId(IDM_CONNECT_WIIMOTE1 + WiimoteId); + OnConnectWiimote(evt); } if (g_Config.bFreeLook) |
