Input: use std::lerp instead of lerp template

This commit is contained in:
Megamouse 2020-02-23 11:35:02 +01:00
parent 17f335648c
commit 64ed2f1151
2 changed files with 1 additions and 6 deletions

View file

@ -693,7 +693,7 @@ void keyboard_pad_handler::ThreadProc()
const f32 v1 = static_cast<f32>(m_stick_val[j]);
// linear interpolation from the current stick value v0 to the desired stick value v1
f32 res = lerp(v0, v1, stick_lerp_factor);
f32 res = std::lerp(v0, v1, stick_lerp_factor);
// round to the correct direction to prevent sticky sticks on small factors
res = (v0 <= v1) ? std::ceil(res) : std::floor(res);