summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerEmu/Setting/NumericSetting.cpp
diff options
context:
space:
mode:
authorMatthew Parlane <parlane@gmail.com>2017-03-03 15:17:25 +1300
committerGitHub <noreply@github.com>2017-03-03 15:17:25 +1300
commit51e932b4ec24b0225a80c66a39c906f6e95f7519 (patch)
tree80caad500844500871f06ff2e26af57f1acb4b73 /Source/Core/InputCommon/ControllerEmu/Setting/NumericSetting.cpp
parent1392b88879a624ad9ac689a539260f664dc86372 (diff)
parent1539ff669119ad796201c72052113e84862e1e98 (diff)
Merge pull request #4975 from ligfx/controlsetting
InputCommon: move Setting classes out of ControlGroup
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu/Setting/NumericSetting.cpp')
-rw-r--r--Source/Core/InputCommon/ControllerEmu/Setting/NumericSetting.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/Setting/NumericSetting.cpp b/Source/Core/InputCommon/ControllerEmu/Setting/NumericSetting.cpp
new file mode 100644
index 0000000000..17a0fd11b1
--- /dev/null
+++ b/Source/Core/InputCommon/ControllerEmu/Setting/NumericSetting.cpp
@@ -0,0 +1,25 @@
+// Copyright 2017 Dolphin Emulator Project
+// Licensed under GPLv2+
+// Refer to the license.txt file included.
+
+#include "InputCommon/ControllerEmu/Setting/NumericSetting.h"
+
+namespace ControllerEmu
+{
+NumericSetting::NumericSetting(const std::string& setting_name, const ControlState default_value,
+ const u32 low, const u32 high, const SettingType setting_type)
+ : m_type(setting_type), m_name(setting_name), m_default_value(default_value), m_low(low),
+ m_high(high)
+{
+}
+
+ControlState NumericSetting::GetValue() const
+{
+ return m_value;
+}
+void NumericSetting::SetValue(ControlState value)
+{
+ m_value = value;
+}
+
+} // namespace ControllerEmu