diff options
| author | Tillmann Karras <tilkax@gmail.com> | 2020-08-01 00:17:23 +0100 |
|---|---|---|
| committer | Tillmann Karras <tilkax@gmail.com> | 2020-08-08 21:45:03 +0100 |
| commit | d2b06f47867449f112b7a782cdb626ab0f175cee (patch) | |
| tree | a37a472d347193f7caa2b49023a44da5beed29c0 /Source/Core/InputCommon/ControllerEmu/ControlGroup | |
| parent | a161e58591cadc504c9751a563f4c065ad0f435a (diff) | |
Fix various -Wshadow warnings
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu/ControlGroup')
5 files changed, 12 insertions, 12 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/AnalogStick.cpp b/Source/Core/InputCommon/ControllerEmu/ControlGroup/AnalogStick.cpp index 4a03527ffe..a0157eec8f 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/AnalogStick.cpp +++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/AnalogStick.cpp @@ -56,14 +56,14 @@ ControlState AnalogStick::GetGateRadiusAtAngle(double ang) const return m_stick_gate->GetRadiusAtAngle(ang); } -OctagonAnalogStick::OctagonAnalogStick(const char* name, ControlState gate_radius) - : OctagonAnalogStick(name, name, gate_radius) +OctagonAnalogStick::OctagonAnalogStick(const char* name_, ControlState gate_radius) + : OctagonAnalogStick(name_, name_, gate_radius) { } -OctagonAnalogStick::OctagonAnalogStick(const char* name, const char* ui_name, +OctagonAnalogStick::OctagonAnalogStick(const char* name_, const char* ui_name_, ControlState gate_radius) - : AnalogStick(name, ui_name, std::make_unique<ControllerEmu::OctagonStickGate>(gate_radius)) + : AnalogStick(name_, ui_name_, std::make_unique<ControllerEmu::OctagonStickGate>(gate_radius)) { } diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/Cursor.cpp b/Source/Core/InputCommon/ControllerEmu/ControlGroup/Cursor.cpp index 382bd8c2a4..1c5f48a148 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/Cursor.cpp +++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/Cursor.cpp @@ -21,8 +21,8 @@ namespace ControllerEmu { -Cursor::Cursor(std::string name, std::string ui_name) - : ReshapableInput(std::move(name), std::move(ui_name), GroupType::Cursor), +Cursor::Cursor(std::string name_, std::string ui_name_) + : ReshapableInput(std::move(name_), std::move(ui_name_), GroupType::Cursor), m_last_update(Clock::now()) { for (auto& named_direction : named_directions) diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUAccelerometer.cpp b/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUAccelerometer.cpp index ccb97dd730..1e23c5dffe 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUAccelerometer.cpp +++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUAccelerometer.cpp @@ -14,8 +14,8 @@ namespace ControllerEmu { -IMUAccelerometer::IMUAccelerometer(std::string name, std::string ui_name) - : ControlGroup(std::move(name), std::move(ui_name), GroupType::IMUAccelerometer) +IMUAccelerometer::IMUAccelerometer(std::string name_, std::string ui_name_) + : ControlGroup(std::move(name_), std::move(ui_name_), GroupType::IMUAccelerometer) { AddInput(Translate, _trans("Up")); AddInput(Translate, _trans("Down")); diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUCursor.cpp b/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUCursor.cpp index be90bf532c..25df9772da 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUCursor.cpp +++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUCursor.cpp @@ -16,9 +16,9 @@ namespace ControllerEmu { -IMUCursor::IMUCursor(std::string name, std::string ui_name) +IMUCursor::IMUCursor(std::string name_, std::string ui_name_) : ControlGroup( - std::move(name), std::move(ui_name), GroupType::IMUCursor, + std::move(name_), std::move(ui_name_), GroupType::IMUCursor, #ifdef ANDROID // Enabling this on Android devices which have an accelerometer and gyroscope prevents // touch controls from being used for pointing, and touch controls generally work better diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUGyroscope.cpp b/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUGyroscope.cpp index 8837c67f13..ef0e10d168 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUGyroscope.cpp +++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUGyroscope.cpp @@ -24,8 +24,8 @@ static constexpr auto MAXIMUM_CALIBRATION_DURATION = std::chrono::hours(1); // This is made slightly lower than the UI update frequency of 30. static constexpr auto WORST_ACCEPTABLE_CALIBRATION_UPDATE_FREQUENCY = 25; -IMUGyroscope::IMUGyroscope(std::string name, std::string ui_name) - : ControlGroup(std::move(name), std::move(ui_name), GroupType::IMUGyroscope) +IMUGyroscope::IMUGyroscope(std::string name_, std::string ui_name_) + : ControlGroup(std::move(name_), std::move(ui_name_), GroupType::IMUGyroscope) { AddInput(Translate, _trans("Pitch Up")); AddInput(Translate, _trans("Pitch Down")); |
