From 6f746798f9e488cfab48ec108390cedafaec99a4 Mon Sep 17 00:00:00 2001 From: Lizzy Fleckenstein Date: Mon, 8 May 2023 22:39:21 +0200 Subject: Fix yaw --- src/gfx.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gfx.rs') diff --git a/src/gfx.rs b/src/gfx.rs index c86b351..385291f 100644 --- a/src/gfx.rs +++ b/src/gfx.rs @@ -6,7 +6,6 @@ use winit::{ event::{DeviceEvent::*, Event::*, WindowEvent::*}, event_loop::ControlFlow::ExitWithCode, platform::run_return::EventLoopExtRunReturn, - window::CursorGrabMode, }; mod map; @@ -106,7 +105,7 @@ pub async fn run( .. } => { if !game_paused { - state.camera.update_mouse(delta.0 as f32, delta.1 as f32); + state.camera.update_mouse(-delta.0 as f32, delta.1 as f32); window .set_cursor_position(winit::dpi::PhysicalPosition::new( state.config.width / 2, -- cgit v1.2.3