mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
Merge branch 'MihailRis:main' into main
This commit is contained in:
commit
1e07daa5e6
10 changed files with 68 additions and 11 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