summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2024-10-13 23:46:06 -0400
committerLLLL Colonq <llll@colonq>2024-10-13 23:46:06 -0400
commit3efd3026d22c71e95a853985f3f50f52147d287e (patch)
tree86d6e50f41cf389089ac24e1c83d2b28f60922d9 /src/lib.rs
parentb86e6259278892b85aa07da4b98e2d7daf807e21 (diff)
Instanced rendering, mouse move event
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs3
1 files changed, 3 insertions, 0 deletions
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,