diff options
author | Lizzy Fleckenstein <eliasfleckenstein@web.de> | 2023-05-08 22:39:21 +0200 |
---|---|---|
committer | Lizzy Fleckenstein <eliasfleckenstein@web.de> | 2023-05-08 22:39:21 +0200 |
commit | 6f746798f9e488cfab48ec108390cedafaec99a4 (patch) | |
tree | 1eb59c65dd0220b4173dee6b8c5f5ee1eb66ebfd /src/gfx.rs | |
parent | cf2d1870a2585069a1286ecca77109a12ca4dd47 (diff) | |
download | mt_client-6f746798f9e488cfab48ec108390cedafaec99a4.tar.xz |
Fix yaw
Diffstat (limited to 'src/gfx.rs')
-rw-r--r-- | src/gfx.rs | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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, |