mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
InputCommon: Use value of "Modifier" button "Range" setting rather than always applying 50%.
Make "Clear" button reset "Modifier" "Range" settings to 50%.
This commit is contained in:
@ -40,9 +40,7 @@ AnalogStick::ReshapeData AnalogStick::GetReshapableState(bool adjusted) const
|
||||
if (!adjusted)
|
||||
return {x, y};
|
||||
|
||||
const ControlState modifier = controls[4]->GetState();
|
||||
|
||||
return Reshape(x, y, modifier);
|
||||
return Reshape(x, y, GetModifierInput()->GetState());
|
||||
}
|
||||
|
||||
AnalogStick::StateData AnalogStick::GetState() const
|
||||
@ -55,6 +53,11 @@ ControlState AnalogStick::GetGateRadiusAtAngle(double ang) const
|
||||
return m_stick_gate->GetRadiusAtAngle(ang);
|
||||
}
|
||||
|
||||
Control* AnalogStick::GetModifierInput() const
|
||||
{
|
||||
return controls[4].get();
|
||||
}
|
||||
|
||||
OctagonAnalogStick::OctagonAnalogStick(const char* name_, ControlState gate_radius)
|
||||
: OctagonAnalogStick(name_, name_, gate_radius)
|
||||
{
|
||||
|
Reference in New Issue
Block a user