2010-07-05 10:46:32 +00:00
|
|
|
#ifndef UDPWRAPPER_H
|
|
|
|
#define UDPWRAPPER_H
|
|
|
|
|
2010-07-06 01:37:34 +00:00
|
|
|
#include "Common.h"
|
2010-07-05 10:46:32 +00:00
|
|
|
#include "ControllerEmu.h"
|
2010-07-06 01:37:34 +00:00
|
|
|
#include "IniFile.h"
|
2010-07-05 10:46:32 +00:00
|
|
|
#include <string>
|
|
|
|
|
2010-07-08 00:52:46 +00:00
|
|
|
#if defined(HAVE_WX) && HAVE_WX
|
2010-07-06 01:37:34 +00:00
|
|
|
#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-07-08 00:52:46 +00:00
|
|
|
#endif
|
2010-07-06 01:37:34 +00:00
|
|
|
|
|
|
|
#include "UDPWiimote.h"
|
2010-07-05 10:46:32 +00:00
|
|
|
|
|
|
|
class UDPWrapper : public ControllerEmu::ControlGroup
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
UDPWiimote * inst;
|
|
|
|
int index;
|
|
|
|
bool updIR,updAccel,updButt,udpEn; //upd from update and udp from... well... UDP
|
|
|
|
std::string port;
|
|
|
|
|
|
|
|
UDPWrapper(int index, const char* const _name);
|
|
|
|
virtual void LoadConfig(IniFile::Section *sec, const std::string& defdev = "", const std::string& base = "" );
|
|
|
|
virtual void SaveConfig(IniFile::Section *sec, const std::string& defdev = "", const std::string& base = "" );
|
|
|
|
void Refresh();
|
2010-07-08 00:52:46 +00:00
|
|
|
#if defined(HAVE_WX) && HAVE_WX
|
2010-07-06 01:37:34 +00:00
|
|
|
void Configure(wxWindow * parent);
|
2010-07-08 00:52:46 +00:00
|
|
|
#endif
|
2010-07-06 01:37:34 +00:00
|
|
|
virtual ~UDPWrapper();
|
2010-07-05 10:46:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|