Do not use C++20 std:lerp
This commit is contained in:
parent
123ec69910
commit
fe5572c179
@ -109,7 +109,7 @@ namespace Components
|
||||
}
|
||||
#else
|
||||
float coeff = std::clamp(hasBeenHoldingLeftXForMs.count()/(float)XInput::msBeforeUnlockingSensitivity.count(), 0.0F, 1.0F);
|
||||
viewStickX *= std::lerp(XInput::lockedSensitivityMultiplier, 1.0f, coeff);
|
||||
viewStickX *= XInput::lockedSensitivityMultiplier + coeff * (1.0f -XInput::lockedSensitivityMultiplier);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user