aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/win32
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/api/win32
parentc752142e045156c6869a43183032030dd1d0439d (diff)
downloadglutin-d9f0d92584af1d76779cb8cb4a70762c889970f5.tar.gz
glutin-d9f0d92584af1d76779cb8cb4a70762c889970f5.zip
Rework MouseWheel event and fix the values on win32
Diffstat (limited to 'src/api/win32')
-rw-r--r--src/api/win32/callback.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/api/win32/callback.rs b/src/api/win32/callback.rs
index e852eeb..1ea95a5 100644
--- a/src/api/win32/callback.rs
+++ b/src/api/win32/callback.rs
@@ -114,8 +114,9 @@ pub unsafe extern "system" fn callback(window: winapi::HWND, msg: winapi::UINT,
let value = (wparam >> 16) as i16;
let value = value as i32;
+ let value = value as f64 / winapi::WHEEL_DELTA as f64;
- send_event(window, MouseWheel(value));
+ send_event(window, MouseWheel(0.0, value));
0
},