summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerEmu/Setting/BooleanSetting.cpp
diff options
context:
space:
mode:
authorspycrab <spycrab@users.noreply.github.com>2018-07-06 11:27:20 +0200
committerGitHub <noreply@github.com>2018-07-06 11:27:20 +0200
commiteb01a0a040905d9a85905c658e6349631806b6b0 (patch)
tree0025fbdff21cad73e335ed87ad8e0f9d093ff764 /Source/Core/InputCommon/ControllerEmu/Setting/BooleanSetting.cpp
parent14317c8a0f28cdf7e67527ebec3bef0ac41c6e2e (diff)
parent0f4865393506ffedc8c1fb93b891a9249a6c0b2a (diff)
Merge pull request #7204 from spycrab/exclusive_mapping
Support for exclusive mapping booleans
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu/Setting/BooleanSetting.cpp')
-rw-r--r--Source/Core/InputCommon/ControllerEmu/Setting/BooleanSetting.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/Setting/BooleanSetting.cpp b/Source/Core/InputCommon/ControllerEmu/Setting/BooleanSetting.cpp
index 3f7c4e0752..d9aa61b9f6 100644
--- a/Source/Core/InputCommon/ControllerEmu/Setting/BooleanSetting.cpp
+++ b/Source/Core/InputCommon/ControllerEmu/Setting/BooleanSetting.cpp
@@ -7,15 +7,16 @@
namespace ControllerEmu
{
BooleanSetting::BooleanSetting(const std::string& setting_name, const std::string& ui_name,
- const bool default_value, const SettingType setting_type)
+ const bool default_value, const SettingType setting_type,
+ const bool exclusive)
: m_type(setting_type), m_name(setting_name), m_ui_name(ui_name),
- m_default_value(default_value), m_value(default_value)
+ m_default_value(default_value), m_value(default_value), m_exclusive(exclusive)
{
}
BooleanSetting::BooleanSetting(const std::string& setting_name, const bool default_value,
- const SettingType setting_type)
- : BooleanSetting(setting_name, setting_name, default_value, setting_type)
+ const SettingType setting_type, const bool exclusive)
+ : BooleanSetting(setting_name, setting_name, default_value, setting_type, exclusive)
{
}
@@ -23,6 +24,12 @@ bool BooleanSetting::GetValue() const
{
return m_value;
}
+
+bool BooleanSetting::IsExclusive() const
+{
+ return m_exclusive;
+}
+
void BooleanSetting::SetValue(bool value)
{
m_value = value;