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