Skip to content

Commit

Permalink
Print mouse deltas
Browse files Browse the repository at this point in the history
  • Loading branch information
wtholliday committed May 9, 2023
1 parent bfdb923 commit 4a732da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/winit_event_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,10 @@ pub fn rui(view: impl View) {
command: mods.logo(),
};
}

WEvent::DeviceEvent { event: winit::event::DeviceEvent::MouseMotion{ delta }, .. } => {
println!("mouse delta: {} {}", delta.0, delta.1);
}
_ => (),
}
});
Expand Down

0 comments on commit 4a732da

Please sign in to comment.