diff options
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu/Setting/NumericSetting.h')
| -rw-r--r-- | Source/Core/InputCommon/ControllerEmu/Setting/NumericSetting.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/Setting/NumericSetting.h b/Source/Core/InputCommon/ControllerEmu/Setting/NumericSetting.h new file mode 100644 index 0000000000..2e84d383ba --- /dev/null +++ b/Source/Core/InputCommon/ControllerEmu/Setting/NumericSetting.h @@ -0,0 +1,32 @@ +// Copyright 2017 Dolphin Emulator Project +// Licensed under GPLv2+ +// Refer to the license.txt file included. + +#pragma once + +#include <string> + +#include "Common/CommonTypes.h" +#include "InputCommon/ControllerEmu/Setting/Setting.h" +#include "InputCommon/ControllerInterface/Device.h" + +namespace ControllerEmu +{ +class NumericSetting +{ +public: + NumericSetting(const std::string& setting_name, const ControlState default_value, + const u32 low = 0, const u32 high = 100, + const SettingType setting_type = SettingType::NORMAL); + + ControlState GetValue() const; + void SetValue(ControlState value); + const SettingType m_type; + const std::string m_name; + const ControlState m_default_value; + const u32 m_low; + const u32 m_high; + ControlState m_value; +}; + +} // namespace ControllerEmu |
