aboutsummaryrefslogtreecommitdiffstats
path: root/src/events.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/events.rs')
-rw-r--r--src/events.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/events.rs b/src/events.rs
index 957e0c3..7962706 100644
--- a/src/events.rs
+++ b/src/events.rs
@@ -25,9 +25,11 @@ pub enum Event {
/// The parameter are the (x,y) coords in pixels relative to the top-left corner of the window.
MouseMoved((i32, i32)),
+ /// Returns the horizontal and vertical mouse scrolling.
+ ///
/// A positive value indicates that the wheel was rotated forward, away from the user;
- /// a negative value indicates that the wheel was rotated backward, toward the user.
- MouseWheel(i32),
+ /// a negative value indicates that the wheel was rotated backward, toward the user.
+ MouseWheel(f64, f64),
/// An event from the mouse has been received.
MouseInput(ElementState, MouseButton),