From 3efd3026d22c71e95a853985f3f50f52147d287e Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Sun, 13 Oct 2024 23:46:06 -0400 Subject: Instanced rendering, mouse move event --- src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 50add89..453b0dc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -81,6 +81,9 @@ where winit::event::WindowEvent::Focused(false) => { st.keys = state::Keys::new(); }, + winit::event::WindowEvent::CursorMoved { position, ..} => { + st.mouse_moved(&ctx, position.x as f32, position.y as f32, game); + }, winit::event::WindowEvent::MouseInput { button, state, -- cgit v1.2.3