Rework MouseWheel event and fix the values on win32
This commit is contained in:
parent
c752142e04
commit
d9f0d92584
4 changed files with 9 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue