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
|
|
|
|
2014-02-17 03:18:15 -07:00
|
|
|
#include <map>
|
|
|
|
#include <vector>
|
2010-06-03 12:05:08 -06:00
|
|
|
|
2014-02-17 03:18:15 -07:00
|
|
|
#include "Common/FileUtil.h"
|
|
|
|
#include "Common/IniFile.h"
|
|
|
|
#include "Common/Thread.h"
|
2010-06-03 12:05:08 -06:00
|
|
|
|
2014-02-17 03:18:15 -07:00
|
|
|
#include "InputCommon/ControllerEmu.h"
|
|
|
|
#include "InputCommon/ControllerInterface/ControllerInterface.h"
|
2010-06-03 12:05:08 -06:00
|
|
|
|
2014-08-30 22:04:15 -06:00
|
|
|
class InputConfig
|
2010-06-03 12:05:08 -06:00
|
|
|
{
|
|
|
|
public:
|
2014-08-30 22:04:15 -06:00
|
|
|
InputConfig(const char* const _ini_name, const char* const _gui_name,
|
2010-10-12 13:42:29 -06:00
|
|
|
const char* const _profile_name)
|
|
|
|
: ini_name(_ini_name), gui_name(_gui_name), profile_name(_profile_name) {}
|
|
|
|
|
2014-08-30 22:04:15 -06:00
|
|
|
~InputConfig();
|
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
|
|
|
};
|