Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
Base on deltatime for sensitivity
Browse files Browse the repository at this point in the history
  • Loading branch information
IridescentRose committed May 30, 2022
1 parent b425daa commit 59090b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 59090b2

Please sign in to comment.