From 1539ff669119ad796201c72052113e84862e1e98 Mon Sep 17 00:00:00 2001 From: Michael Maltese Date: Sun, 26 Feb 2017 12:00:24 -0800 Subject: InputCommon: move Setting classes out of ControlGroup --- .../ControllerEmu/Setting/NumericSetting.cpp | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Source/Core/InputCommon/ControllerEmu/Setting/NumericSetting.cpp (limited to 'Source/Core/InputCommon/ControllerEmu/Setting/NumericSetting.cpp') 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 -- cgit v1.2.3