mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add mouse_sensitivity option
This commit is contained in:
parent
bda62bd3bf
commit
822723c246
3 changed files with 5 additions and 1 deletions
|
@ -2061,7 +2061,8 @@ void the_game(
|
|||
if(input->isKeyDown(irr::KEY_RIGHT))
|
||||
dx += dtime * keyspeed;*/
|
||||
|
||||
float d = 0.2;
|
||||
float d = g_settings->getFloat("mouse_sensitivity");
|
||||
d = rangelim(d, 0.01, 100.0);
|
||||
camera_yaw -= dx*d;
|
||||
camera_pitch += dy*d;
|
||||
if(camera_pitch < -89.5) camera_pitch = -89.5;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue