summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Frame.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2014-11-28 19:50:13 -0500
committerLioncash <mathew1800@gmail.com>2014-11-28 19:50:13 -0500
commitc2e5715034b8c97b06e68b89cd99694b2e7f7c08 (patch)
tree11853ae8b2b71d5507ef578ed2f102780234a354 /Source/Core/DolphinWX/Frame.cpp
parentce059769f6bf13118366f77fea926727efcf4510 (diff)
parentdf9ace09859d56df28b7ca78064fa0d99d566921 (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.cpp5
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)