2014-02-10 18:54:46 +00:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
2010-10-12 19:42:29 +00:00
|
|
|
|
2010-07-05 10:46:32 +00:00
|
|
|
#include <string>
|
|
|
|
|
2014-02-17 10:18:15 +00:00
|
|
|
#include "Common/Common.h"
|
|
|
|
#include "Common/IniFile.h"
|
2014-02-19 01:17:31 +00:00
|
|
|
#include "InputCommon/ControllerEmu.h"
|
|
|
|
#include "InputCommon/UDPWiimote.h"
|
2014-02-17 10:18:15 +00:00
|
|
|
|
2010-07-05 10:46:32 +00:00
|
|
|
class UDPWrapper : public ControllerEmu::ControlGroup
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
UDPWiimote * inst;
|
|
|
|
int index;
|
2010-11-14 13:30:57 +00:00
|
|
|
bool updIR, updAccel, updButt, updNun, updNunAccel, udpEn; //upd from update and udp from... well... UDP
|
2010-07-05 10:46:32 +00:00
|
|
|
std::string port;
|
|
|
|
|
|
|
|
UDPWrapper(int index, const char* const _name);
|
2014-03-08 00:54:44 +00:00
|
|
|
virtual void LoadConfig(IniFile::Section *sec, const std::string& defdev = "", const std::string& base = "") override;
|
|
|
|
virtual void SaveConfig(IniFile::Section *sec, const std::string& defdev = "", const std::string& base = "") override;
|
2010-07-05 10:46:32 +00:00
|
|
|
void Refresh();
|
2010-07-06 01:37:34 +00:00
|
|
|
virtual ~UDPWrapper();
|
2010-07-05 10:46:32 +00:00
|
|
|
};
|