ControllerEmu: Add new "input override" system
This commit is contained in:
1 parent
cb6d476538
commit
cb16d20f2d
27 files changed
+355
-74
No files matched your search
@@ -5,14 +5,18 @@
|
||||
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include <type_traits>
|
||||
#include <vector>
|
||||
|
||||
#include "Common/CommonTypes.h"
|
||||
#include "Common/IniFile.h"
|
||||
#include "InputCommon/ControllerEmu/Control/Control.h"
|
||||
#include "InputCommon/ControllerInterface/CoreDevice.h"
|
||||
|
||||
namespace ControllerEmu
|
||||
{
|
||||
@@ -27,6 +31,9 @@ class NumericSetting;
|
||||
template <typename T>
|
||||
class SettingValue;
|
||||
|
||||
using InputOverrideFunction = std::function<std::optional<ControlState>(
|
||||
const std::string_view group_name, const std::string_view control_name, ControlState state)>;
|
||||
|
||||
enum class GroupType
|
||||
{
|
||||
Other,
|
||||
|
||||
Reference in new issue
Block a user