2013-04-17 21:09:55 -06:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
2010-06-12 11:15:16 -06:00
|
|
|
|
2014-02-10 11:54:46 -07:00
|
|
|
#pragma once
|
2010-06-03 12:05:08 -06:00
|
|
|
|
|
|
|
#include "Thread.h"
|
|
|
|
#include "FileUtil.h"
|
|
|
|
#include "IniFile.h"
|
|
|
|
|
2010-06-12 11:39:33 -06:00
|
|
|
#include "ControllerInterface/ControllerInterface.h"
|
2010-06-03 12:05:08 -06:00
|
|
|
#include "ControllerEmu.h"
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include <map>
|
|
|
|
|
2010-10-12 13:42:29 -06:00
|
|
|
// InputPlugin isn't a very good name anymore since it's used by GCPad/Wiimote
|
|
|
|
// which are not even plugins anymore.
|
2010-06-12 12:45:39 -06:00
|
|
|
class InputPlugin
|
2010-06-03 12:05:08 -06:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
2010-10-12 13:42:29 -06:00
|
|
|
InputPlugin(const char* const _ini_name, const char* const _gui_name,
|
|
|
|
const char* const _profile_name)
|
|
|
|
: ini_name(_ini_name), gui_name(_gui_name), profile_name(_profile_name) {}
|
|
|
|
|
2010-06-12 12:45:39 -06:00
|
|
|
~InputPlugin();
|
2010-06-03 12:05:08 -06:00
|
|
|
|
2013-01-09 13:03:43 -07:00
|
|
|
bool LoadConfig(bool isGC);
|
2010-06-03 12:05:08 -06:00
|
|
|
void SaveConfig();
|
|
|
|
|
2014-01-30 17:51:21 -07:00
|
|
|
std::vector<ControllerEmu*> controllers;
|
2010-06-03 12:05:08 -06:00
|
|
|
|
2014-01-30 17:51:21 -07:00
|
|
|
std::recursive_mutex controls_lock; // for changing any control references
|
2010-06-03 12:05:08 -06:00
|
|
|
|
2014-01-30 17:51:21 -07:00
|
|
|
const char* const ini_name;
|
|
|
|
const char* const gui_name;
|
|
|
|
const char* const profile_name;
|
2010-06-03 12:05:08 -06:00
|
|
|
};
|