mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 07:03:15 -04:00
Instead of storing the event handler within the AppState, and extracting it our every time we need it, we now use the same event handling implementation as for macOS that ensures we don't re-entrantly call the event handler, and that we un-register the handler again after we're done using it (`UIApplicationMain` won't return, but may still unwind, so this is very important for panic safety).
14 lines
282 B
Rust
14 lines
282 B
Rust
//! Apple/Darwin-specific implementations
|
|
|
|
#[cfg(target_os = "macos")]
|
|
mod appkit;
|
|
mod event_handler;
|
|
mod notification_center;
|
|
#[cfg(not(target_os = "macos"))]
|
|
mod uikit;
|
|
|
|
#[cfg(target_os = "macos")]
|
|
pub use self::appkit::*;
|
|
#[cfg(not(target_os = "macos"))]
|
|
pub use self::uikit::*;
|