From 26f17a172353098740d97cce531f4c7c06abd4e4 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 25 Feb 2017 00:35:02 -0500 Subject: 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. --- Source/Core/InputCommon/ControllerEmu/ControlGroup/AnalogStick.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/InputCommon/ControllerEmu/ControlGroup/AnalogStick.cpp') 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(named_direction)); -- cgit v1.2.3