mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-31 22:00:04 -04:00
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:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user