mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Fix various -Wshadow warnings
This commit is contained in:
@ -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))
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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"));
|
||||
|
@ -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
|
||||
|
@ -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"));
|
||||
|
Reference in New Issue
Block a user