mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-06 08:09:19 +00:00
added status of the wiimote to the statusbar
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1014 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
34d408b860
commit
d378b9d31f
6 changed files with 36 additions and 7 deletions
|
@ -302,6 +302,7 @@ void Host_UpdateStatusBar(const char* _pText)
|
|||
{
|
||||
wxCommandEvent event(wxEVT_HOST_COMMAND, IDM_UPDATESTATUSBAR);
|
||||
event.SetString(wxString::FromAscii(_pText));
|
||||
event.SetInt(0);
|
||||
|
||||
wxPostEvent(main_frame, event);
|
||||
}
|
||||
|
@ -318,3 +319,24 @@ void Host_SysMessage(const char *fmt, ...)
|
|||
if (msg[strlen(msg)-1] == '\n') msg[strlen(msg)-1] = 0;
|
||||
wxMessageBox(wxString::FromAscii(msg));
|
||||
}
|
||||
|
||||
void Host_SetWiiMoteConnectionState(int _State)
|
||||
{
|
||||
static int currentState = -1;
|
||||
if (_State == currentState)
|
||||
return;
|
||||
currentState = _State;
|
||||
|
||||
wxCommandEvent event(wxEVT_HOST_COMMAND, IDM_UPDATESTATUSBAR);
|
||||
|
||||
switch(_State)
|
||||
{
|
||||
case 0: event.SetString(wxString::FromAscii("not connected")); break;
|
||||
case 1: event.SetString(wxString::FromAscii("connecting...")); break;
|
||||
case 2: event.SetString(wxString::FromAscii("conected!")); break;
|
||||
}
|
||||
|
||||
event.SetInt(1);
|
||||
|
||||
wxPostEvent(main_frame, event);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue