Fix an issue when a wiimote source is changed to a real wiimote in the wiimote config dialog while a game is running, and the wiimote was disconnected from the CPU. Only change the connection status when the dialog is closed.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7229 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Glenn Rice
2011-02-23 03:06:16 +00:00
parent 39573ca959
commit ceb03781dc
3 changed files with 50 additions and 13 deletions

View File

@ -21,11 +21,14 @@ public:
WiimoteConfigPage(wxWindow* const parent, const int index);
void SelectSource(wxCommandEvent& event);
void UpdateWiimoteStatus();
void RevertSource();
wxStaticText* connected_wiimotes_txt;
private:
const int m_index;
unsigned int orig_source, end_source;
};
class WiimoteConfigDiag : public wxDialog
@ -43,10 +46,11 @@ public:
void UpdateGUI();
private:
void OnClose(wxCloseEvent& event);
InputPlugin& m_plugin;
wxNotebook* m_pad_notebook;
bool m_save;
};