diff options
| author | Lioncash <mathew1800@gmail.com> | 2017-02-25 00:35:02 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2017-02-25 01:15:04 -0500 |
| commit | 26f17a172353098740d97cce531f4c7c06abd4e4 (patch) | |
| tree | cf488dab1c5371856cb73af2753854ab15fa4c8f /Source/Core/InputCommon/ControllerEmu/ControlGroup/AnalogStick.cpp | |
| parent | 51136681dfa77c88f548d187c9c7954f0ad6ac32 (diff) | |
ControlGroup: Convert group type enum into an enum class
Gets some constants out of the ControllerEmu namespace, and modifies
ControlGroup so that it uses the enum type itself to represent the
underlying type, rather than a u32 value.
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu/ControlGroup/AnalogStick.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerEmu/ControlGroup/AnalogStick.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/AnalogStick.cpp b/Source/Core/InputCommon/ControllerEmu/ControlGroup/AnalogStick.cpp index 8ee7357963..f8e2fabd59 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/AnalogStick.cpp +++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/AnalogStick.cpp @@ -24,7 +24,7 @@ AnalogStick::AnalogStick(const char* const name_, ControlState default_radius) AnalogStick::AnalogStick(const char* const name_, const char* const ui_name_, ControlState default_radius) - : ControlGroup(name_, ui_name_, GROUP_TYPE_STICK) + : ControlGroup(name_, ui_name_, GroupType::Stick) { for (auto& named_direction : named_directions) controls.emplace_back(std::make_unique<Input>(named_direction)); |
