mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
Input: use std::lerp instead of lerp template
This commit is contained in:
parent
17f335648c
commit
64ed2f1151
2 changed files with 1 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue