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