summaryrefslogtreecommitdiff
path: root/src/gfx.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/gfx.rs')
-rw-r--r--src/gfx.rs3
1 files changed, 1 insertions, 2 deletions
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,