mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-13 00:58:29 +02:00
WiimoteEmu: Allow shake frequency and intensity to be configured. Other minor cleanups.
This commit is contained in:
@ -272,8 +272,7 @@ ReshapableInput::ReshapeData ReshapableInput::Reshape(ControlState x, ControlSta
|
||||
}
|
||||
|
||||
// Apply deadzone as a percentage of the user-defined calibration shape/size:
|
||||
const ControlState deadzone = GetDeadzonePercentage();
|
||||
dist = std::max(0.0, dist - deadzone) / (1.0 - deadzone);
|
||||
dist = ApplyDeadzone(dist, GetDeadzonePercentage());
|
||||
|
||||
// Scale to the gate shape/radius:
|
||||
dist *= gate_max_dist;
|
||||
|
Reference in New Issue
Block a user