summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.h
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2025-06-09 00:09:35 -0400
committerGitHub <noreply@github.com>2025-06-09 00:09:35 -0400
commit42d5f2b7056b3d3fb8be8320003ad836bb003fae (patch)
treedfc52a4c6e13d668c05af725e1e1ba8384888f8b /Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.h
parent5064b615ba74573206008973ca9281ff0d33dd04 (diff)
parenta8eafa4ccd4fa60d1e4bd2843a00354eec8967f1 (diff)
Merge pull request #13702 from CostPerUnit/master
MappingWidget: Add Advanced Configuration Button to Point And Point Passthrough "Enable" boxes
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.h')
-rw-r--r--Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.h b/Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.h
index 7928fb61a9..c67b0ac132 100644
--- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.h
+++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.h
@@ -15,6 +15,7 @@
#include "Common/IniFile.h"
#include "InputCommon/ControllerEmu/Control/Control.h"
+#include "InputCommon/ControllerEmu/Setting/NumericSetting.h"
#include "InputCommon/ControllerInterface/CoreDevice.h"
namespace ControllerEmu
@@ -62,7 +63,7 @@ public:
Disabled,
};
- explicit ControlGroup(std::string name, GroupType type = GroupType::Other,
+ explicit ControlGroup(const std::string& name, GroupType type = GroupType::Other,
DefaultValue default_value = DefaultValue::AlwaysEnabled);
ControlGroup(std::string name, std::string ui_name, GroupType type = GroupType::Other,
DefaultValue default_value = DefaultValue::AlwaysEnabled);
@@ -98,12 +99,17 @@ public:
return std::copysign(std::max(T{0}, std::abs(input) - deadzone) / (T{1} - deadzone), input);
}
+ bool HasEnabledSetting() const;
+
const std::string name;
const std::string ui_name;
const GroupType type;
+
+ // The default "enabled" state.
const DefaultValue default_value;
+ SettingValue<bool> enabled;
+ std::unique_ptr<NumericSetting<bool>> enabled_setting;
- bool enabled = true;
std::vector<std::unique_ptr<Control>> controls;
std::vector<std::unique_ptr<NumericSettingBase>> numeric_settings;
};