From 59090b23e42d6125000cb44c420ddb8001cf0a96 Mon Sep 17 00:00:00 2001 From: Nathan Bourgeois Date: Sun, 29 May 2022 21:49:15 -0400 Subject: [PATCH] Base on deltatime for sensitivity --- src/Player.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Player.cpp b/src/Player.cpp index d544431..52429d0 100644 --- a/src/Player.cpp +++ b/src/Player.cpp @@ -279,8 +279,8 @@ auto Player::rotate(float dt) -> void { set_cursor_center(); } else { - vcursor_x += cX * 10.0f; - vcursor_y += -cY * 10.0f; + vcursor_x += cX * 20.0f * dt; + vcursor_y += -cY * 20.0f * dt; if (vcursor_x < 0) vcursor_x = 0;