mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Make the gui more accurately reflect connected wiimotes. Also connect and disconnect wiimotes when settings are changed in the wiimote configuration dialog during emulation.
Fix the number of connected wiimotes in the configuration dialog so it works with translations, and update translations accordingly. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6771 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -640,6 +640,7 @@ void CFrame::OnHostMessage(wxCommandEvent& event)
|
||||
if (GetStatusBar() != NULL)
|
||||
{
|
||||
GetStatusBar()->SetStatusText(event.GetString(), event.GetInt());
|
||||
UpdateGUI();
|
||||
}
|
||||
break;
|
||||
|
||||
@ -838,12 +839,8 @@ void CFrame::OnKeyDown(wxKeyEvent& event)
|
||||
// Actually perform the wiimote connection or disconnection
|
||||
if (WiimoteId >= 0)
|
||||
{
|
||||
bNoWiimoteMsg = GetMenuBar()->IsChecked(IDM_CONNECT_WIIMOTE1 + WiimoteId);
|
||||
GetMenuBar()->Check(IDM_CONNECT_WIIMOTE1 + WiimoteId, !bNoWiimoteMsg);
|
||||
GetUsbPointer()->AccessWiiMote(WiimoteId | 0x100)->Activate(!bNoWiimoteMsg);
|
||||
wxString msg(wxString::Format(wxT("Wiimote %i %s"), WiimoteId + 1,
|
||||
bNoWiimoteMsg ? _("Disconnected") : _("Connected")));
|
||||
Core::DisplayMessage(msg.ToAscii(), 3000);
|
||||
bool connect = !GetMenuBar()->IsChecked(IDM_CONNECT_WIIMOTE1 + WiimoteId);
|
||||
ConnectWiimote(WiimoteId, connect);
|
||||
}
|
||||
|
||||
// Send the OSD hotkeys to the video plugin
|
||||
|
Reference in New Issue
Block a user