mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-12 17:17:09 -04:00
Make keyboard aiming respond to mouse sens option
This commit is contained in:
parent
fa83c1033c
commit
794cb857c4
@ -26,7 +26,8 @@ void Camera_KeyLookUpdate(cc_bool up, cc_bool down, cc_bool right, cc_bool left)
|
||||
static TimeMS last_now = 0;
|
||||
TimeMS now = DateTime_CurrentUTC_MS();
|
||||
|
||||
float delta = 1.2f * (now - last_now);
|
||||
// divide by 25 to have reasonable sensitivity for default mouse sens
|
||||
float delta = (Camera.Sensitivity / 25.0f) * (float)(now - last_now);
|
||||
if (up) cam_deltaY -= delta;
|
||||
if (down) cam_deltaY += delta;
|
||||
if (right) cam_deltaX += delta;
|
||||
|
Loading…
x
Reference in New Issue
Block a user