From d9f0d92584af1d76779cb8cb4a70762c889970f5 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Wed, 29 Apr 2015 14:06:11 +0200 Subject: Rework MouseWheel event and fix the values on win32 --- src/events.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/events.rs') 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), -- cgit v1.2.3