Fix wiimote connect hotkeys.

This commit is contained in:
Rachel Bryk 2014-11-28 08:55:19 -05:00
parent 0e3d20c349
commit df9ace0985

View file

@ -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)