Merge remote-tracking branch 'glutin/master' into merge-glutin
Conflicts: Cargo.toml build.rs src/api/caca/mod.rs src/api/cocoa/mod.rs src/api/egl/ffi.rs src/api/egl/mod.rs src/api/glx/mod.rs src/api/osmesa/mod.rs
This commit is contained in:
commit
d216d6b052
16 changed files with 165 additions and 103 deletions
|
|
@ -1,5 +1,6 @@
|
|||
use std::collections::HashSet;
|
||||
|
||||
use TouchPhase;
|
||||
use Event as GlutinEvent;
|
||||
use ElementState;
|
||||
use MouseButton;
|
||||
|
|
@ -98,7 +99,8 @@ pub fn translate_event(
|
|||
WlPointerAxis::HorizontalScroll => {
|
||||
MouseScrollDelta::PixelDelta(0.0, amplitude as f32)
|
||||
}
|
||||
}
|
||||
},
|
||||
TouchPhase::Moved
|
||||
), surface))
|
||||
} else {
|
||||
None
|
||||
|
|
@ -107,4 +109,4 @@ pub fn translate_event(
|
|||
},
|
||||
_ => None
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#![cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd"))]
|
||||
#![cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd"))]
|
||||
|
||||
pub use self::monitor::{MonitorId, get_available_monitors, get_primary_monitor};
|
||||
pub use self::window::{PollEventsIterator, WaitEventsIterator, Window, WindowProxy};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue