Added FOV and mouse sensitivity settings

This commit is contained in:
MihailRis
2023-12-05 14:47:46 +03:00
parent af2786164a
commit 1d73c0bd9f
10 changed files with 66 additions and 10 deletions
+3 -2
View File
@@ -41,8 +41,9 @@ void CameraControl::refresh() {
}
void CameraControl::updateMouse(PlayerInput& input) {
float rotX = -Events::deltaX / Window::height * 2;
float rotY = -Events::deltaY / Window::height * 2;
float sensitivity = settings.sensitivity;
float rotX = -Events::deltaX / Window::height * sensitivity;
float rotY = -Events::deltaY / Window::height * sensitivity;
if (input.zoom){
rotX /= 4;