winit-orbital: Implement pump_app_events

This commit is contained in:
Wildan M
2026-07-18 15:52:09 +07:00
committed by Jeremy Soller
parent 47dada25e4
commit d84ec647d8
7 changed files with 133 additions and 77 deletions

View File

@@ -1,7 +1,14 @@
#![allow(clippy::single_match)]
// Limit this example to only compatible platforms.
#[cfg(any(windows_platform, macos_platform, x11_platform, wayland_platform, android_platform,))]
#[cfg(any(
windows_platform,
macos_platform,
x11_platform,
wayland_platform,
android_platform,
orbital_platform,
))]
fn main() -> std::process::ExitCode {
use std::process::ExitCode;
use std::thread::sleep;
@@ -81,7 +88,7 @@ fn main() -> std::process::ExitCode {
}
}
#[cfg(any(ios_platform, web_platform, orbital_platform))]
#[cfg(any(ios_platform, web_platform))]
fn main() {
panic!("This platform doesn't support pump_events.")
}