mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
Added FOV and mouse sensitivity settings
This commit is contained in:
parent
af2786164a
commit
1d73c0bd9f
10 changed files with 66 additions and 10 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue