aboutsummaryrefslogtreecommitdiffstats
path: root/src/events.rs
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2015-04-29 14:06:11 +0200
committerPierre Krieger <pierre.krieger1708@gmail.com>2015-04-29 14:35:09 +0200
commitd9f0d92584af1d76779cb8cb4a70762c889970f5 (patch)
tree68ed4378c8aa816b5f7c7593a0bee91a5522f992 /src/events.rs
parentc752142e045156c6869a43183032030dd1d0439d (diff)
downloadglutin-d9f0d92584af1d76779cb8cb4a70762c889970f5.tar.gz
glutin-d9f0d92584af1d76779cb8cb4a70762c889970f5.zip
Rework MouseWheel event and fix the values on win32
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),