2010-07-03 08:04:10 +00:00
|
|
|
|
|
|
|
#ifndef WIIMOTE_CONFIG_DIAG_H
|
|
|
|
#define WIIMOTE_CONFIG_DIAG_H
|
|
|
|
|
|
|
|
#include <wx/wx.h>
|
|
|
|
#include <wx/listbox.h>
|
|
|
|
#include <wx/textctrl.h>
|
|
|
|
#include <wx/button.h>
|
|
|
|
#include <wx/stattext.h>
|
|
|
|
#include <wx/combobox.h>
|
|
|
|
#include <wx/checkbox.h>
|
|
|
|
#include <wx/notebook.h>
|
|
|
|
#include <wx/panel.h>
|
|
|
|
#include <wx/spinctrl.h>
|
|
|
|
|
2010-10-12 19:42:29 +00:00
|
|
|
#include "InputConfigDiag.h"
|
2010-07-03 08:04:10 +00:00
|
|
|
|
|
|
|
class WiimoteConfigPage : public wxNotebookPage
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
WiimoteConfigPage(wxWindow* const parent, const int index);
|
|
|
|
|
|
|
|
void SelectSource(wxCommandEvent& event);
|
2011-02-23 03:06:16 +00:00
|
|
|
void UpdateWiimoteStatus();
|
|
|
|
void RevertSource();
|
2010-07-03 08:04:10 +00:00
|
|
|
|
2010-09-18 16:43:43 +00:00
|
|
|
wxStaticText* connected_wiimotes_txt;
|
|
|
|
|
2010-07-03 08:04:10 +00:00
|
|
|
private:
|
|
|
|
const int m_index;
|
2011-02-24 05:05:25 +00:00
|
|
|
unsigned int orig_source;
|
2010-07-03 08:04:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class WiimoteConfigDiag : public wxDialog
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
WiimoteConfigDiag(wxWindow* const parent, InputPlugin& plugin);
|
2010-09-18 16:43:43 +00:00
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
void PairUpRealWiimotes(wxCommandEvent& event);
|
|
|
|
#endif
|
|
|
|
void RefreshRealWiimotes(wxCommandEvent& event);
|
2010-07-03 08:04:10 +00:00
|
|
|
|
|
|
|
void ConfigEmulatedWiimote(wxCommandEvent& event);
|
|
|
|
void Save(wxCommandEvent& event);
|
2010-09-18 16:43:43 +00:00
|
|
|
void UpdateGUI();
|
2010-07-03 08:04:10 +00:00
|
|
|
|
|
|
|
private:
|
2011-03-15 14:37:04 +00:00
|
|
|
void Cancel(wxCommandEvent& event);
|
2010-07-03 08:04:10 +00:00
|
|
|
|
2011-02-23 03:06:16 +00:00
|
|
|
InputPlugin& m_plugin;
|
2010-07-03 08:04:10 +00:00
|
|
|
wxNotebook* m_pad_notebook;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2010-07-22 07:55:35 +00:00
|
|
|
#endif
|