diff options
| author | Rachel Bryk <RachelBryk@gmail.com> | 2014-11-28 08:55:19 -0500 |
|---|---|---|
| committer | Rachel Bryk <RachelBryk@gmail.com> | 2014-11-28 08:55:19 -0500 |
| commit | df9ace09859d56df28b7ca78064fa0d99d566921 (patch) | |
| tree | e9248e49a795aac2c7a7d76a44d6957e836aa04d /Source/Core/DolphinWX/Frame.cpp | |
| parent | 0e3d20c349ead263a630463beeb4335aaf512e42 (diff) | |
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 3784ae4bc9..dc5ce50268 100644 --- a/Source/Core/DolphinWX/Frame.cpp +++ b/Source/Core/DolphinWX/Frame.cpp @@ -1175,8 +1175,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) |
