mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 09:09:52 -06:00
Plugin that should eventually replace the GCPad and emulated Wiimote plugin:
It's currently only really usable on Windows. Linux/OS X will need keyboard support added in, but SDL should work for joysticks on non-Windows without too many modifications. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5254 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
51
Source/Plugins/Plugin_GCPadNew/Src/Config.h
Normal file
51
Source/Plugins/Plugin_GCPadNew/Src/Config.h
Normal file
@ -0,0 +1,51 @@
|
||||
#ifndef _CONFIG_H_
|
||||
#define _CONFIG_H_
|
||||
|
||||
#define CONFIG_FILE_NAME "GCPadNew.ini"
|
||||
|
||||
#include "ControllerInterface/ControllerInterface.h"
|
||||
#include "../../../Core/Common/Src/thread.h"
|
||||
#include "../../../Core/Common/Src/FileUtil.h"
|
||||
#include "IniFile.h"
|
||||
|
||||
#include "ControllerEmu.h"
|
||||
#include "ControllerEmu/GCPad/GCPad.h"
|
||||
#include "ControllerEmu/Wiimote/Wiimote.h"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include <sstream>
|
||||
|
||||
class Plugin
|
||||
{
|
||||
public:
|
||||
|
||||
Plugin();
|
||||
~Plugin();
|
||||
|
||||
void LoadConfig();
|
||||
void SaveConfig();
|
||||
|
||||
class Pad : public std::vector<ControllerInterface::ControlReference*>
|
||||
{
|
||||
public:
|
||||
class Options
|
||||
{
|
||||
public:
|
||||
Options() : adjust_diagonal(1), allow_background_input(false) {}
|
||||
|
||||
ControlState adjust_diagonal; // will contain the full diagonal value from the input device
|
||||
bool allow_background_input;
|
||||
|
||||
} options;
|
||||
};
|
||||
|
||||
std::vector< ControllerEmu* > controllers;
|
||||
|
||||
Common::CriticalSection controls_crit, interface_crit; // lock controls first
|
||||
ControllerInterface controller_interface;
|
||||
const std::string name;
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user