aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/x11
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/x11
parentc752142e045156c6869a43183032030dd1d0439d (diff)
downloadglutin-d9f0d92584af1d76779cb8cb4a70762c889970f5.tar.gz
glutin-d9f0d92584af1d76779cb8cb4a70762c889970f5.zip
Rework MouseWheel event and fix the values on win32
Diffstat (limited to 'src/api/x11')
-rw-r--r--src/api/x11/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/x11/mod.rs b/src/api/x11/mod.rs
index 3dd90d3..252b22e 100644
--- a/src/api/x11/mod.rs
+++ b/src/api/x11/mod.rs
@@ -240,11 +240,11 @@ impl<'a> Iterator for PollEventsIterator<'a> {
ffi::Button2 => Some(Middle),
ffi::Button3 => Some(Right),
ffi::Button4 => {
- self.window.pending_events.lock().unwrap().push_back(MouseWheel(1));
+ self.window.pending_events.lock().unwrap().push_back(MouseWheel(0.0, 1.0));
None
}
ffi::Button5 => {
- self.window.pending_events.lock().unwrap().push_back(MouseWheel(-1));
+ self.window.pending_events.lock().unwrap().push_back(MouseWheel(0.0, -1.0));
None
}
_ => None