Do not use C++20 std:lerp

This commit is contained in:
rackover 2021-05-04 13:04:05 +02:00
parent 123ec69910
commit fe5572c179

View File

@ -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
}
}