diff options
| author | Anthony <Helios747@users.noreply.github.com> | 2017-02-26 15:56:34 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-26 15:56:34 -0800 |
| commit | 832e0501dbf361c84d7cc6a384ba3610b752e64f (patch) | |
| tree | 120597814e8bfaae7757cc3b27472a5cae254f9d /Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.h | |
| parent | 0dde642b7d65d9b0fdc680e1f4446a78f0a94b6a (diff) | |
| parent | 26f17a172353098740d97cce531f4c7c06abd4e4 (diff) | |
Merge pull request #4960 from lioncash/type
ControlGroup: Convert group type enum into an enum class
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.h')
| -rw-r--r-- | Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.h b/Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.h index d1870f7f03..212205f333 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.h +++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.h @@ -17,18 +17,18 @@ namespace ControllerEmu { class Control; -enum +enum class GroupType { - GROUP_TYPE_OTHER, - GROUP_TYPE_STICK, - GROUP_TYPE_MIXED_TRIGGERS, - GROUP_TYPE_BUTTONS, - GROUP_TYPE_FORCE, - GROUP_TYPE_EXTENSION, - GROUP_TYPE_TILT, - GROUP_TYPE_CURSOR, - GROUP_TYPE_TRIGGERS, - GROUP_TYPE_SLIDER + Other, + Stick, + MixedTriggers, + Buttons, + Force, + Extension, + Tilt, + Cursor, + Triggers, + Slider }; class ControlGroup @@ -102,8 +102,9 @@ public: } }; - explicit ControlGroup(const std::string& name, u32 type = GROUP_TYPE_OTHER); - ControlGroup(const std::string& name, const std::string& ui_name, u32 type = GROUP_TYPE_OTHER); + explicit ControlGroup(const std::string& name, GroupType type = GroupType::Other); + ControlGroup(const std::string& name, const std::string& ui_name, + GroupType type = GroupType::Other); virtual ~ControlGroup(); virtual void LoadConfig(IniFile::Section* sec, const std::string& defdev = "", @@ -115,7 +116,7 @@ public: const std::string name; const std::string ui_name; - const u32 type; + const GroupType type; std::vector<std::unique_ptr<Control>> controls; std::vector<std::unique_ptr<NumericSetting>> numeric_settings; |
