diff options
| author | JosJuice <josjuice@gmail.com> | 2019-11-15 14:08:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-15 14:08:45 +0100 |
| commit | fe39e1e6d8f63fdd936b17aa822ed7167b7297d2 (patch) | |
| tree | 4c5102b7f0d8cfa3a87ed5ebd1e1cbcb430e5736 /Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.h | |
| parent | 294fd8dd3a3317b73fe9603402c0604b1fdd1121 (diff) | |
| parent | f7a50545e3d6878989886203e202fed4af390f0d (diff) | |
Merge pull request #8440 from rlnilsen/motion-input-tweaks
Motion Input enhancements
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.h')
| -rw-r--r-- | Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.h b/Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.h index 310df90e30..26b3ce5ad6 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.h +++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.h @@ -48,8 +48,16 @@ enum class GroupType class ControlGroup { public: - explicit ControlGroup(std::string name, GroupType type = GroupType::Other); - ControlGroup(std::string name, std::string ui_name, GroupType type = GroupType::Other); + enum class CanBeDisabled + { + No, + Yes, + }; + + explicit ControlGroup(std::string name, GroupType type = GroupType::Other, + CanBeDisabled can_be_disabled = CanBeDisabled::No); + ControlGroup(std::string name, std::string ui_name, GroupType type = GroupType::Other, + CanBeDisabled can_be_disabled = CanBeDisabled::No); virtual ~ControlGroup(); virtual void LoadConfig(IniFile::Section* sec, const std::string& defdev = "", @@ -79,7 +87,9 @@ public: const std::string name; const std::string ui_name; const GroupType type; + const bool can_be_disabled; + bool enabled = true; std::vector<std::unique_ptr<Control>> controls; std::vector<std::unique_ptr<NumericSettingBase>> numeric_settings; }; |
