Fix (dis)connecting wiimotes via hotkey.

Fixes issue 5594.
This commit is contained in:
rog 2012-12-28 11:21:08 -05:00
parent c303669dd0
commit 3ec3b7683e
1 changed files with 2 additions and 0 deletions

View File

@ -50,6 +50,7 @@ Core::GetWindowHandle().
#include "LogConfigWindow.h" #include "LogConfigWindow.h"
#include "FifoPlayerDlg.h" #include "FifoPlayerDlg.h"
#include "WxUtils.h" #include "WxUtils.h"
#include "Host.h"
#include "ConfigManager.h" // Core #include "ConfigManager.h" // Core
#include "Core.h" #include "Core.h"
@ -1468,6 +1469,7 @@ void CFrame::ConnectWiimote(int wm_idx, bool connect)
wxString msg(wxString::Format(wxT("Wiimote %i %s"), wm_idx + 1, wxString msg(wxString::Format(wxT("Wiimote %i %s"), wm_idx + 1,
connect ? wxT("Connected") : wxT("Disconnected"))); connect ? wxT("Connected") : wxT("Disconnected")));
Core::DisplayMessage(msg.ToAscii(), 3000); Core::DisplayMessage(msg.ToAscii(), 3000);
Host_UpdateMainFrame();
} }
} }