mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-02-04 15:46:34 +11:00
23 lines
460 B
Rust
23 lines
460 B
Rust
#[cfg(target_os = "android")]
|
|
#[macro_use]
|
|
extern crate android_glue;
|
|
|
|
extern crate winit;
|
|
|
|
#[cfg(target_os = "android")]
|
|
android_start!(main);
|
|
|
|
fn main() {
|
|
let window = winit::WindowBuilder::new()
|
|
.with_min_dimensions(400, 200)
|
|
.with_max_dimensions(800, 400)
|
|
.build()
|
|
.unwrap();
|
|
|
|
for event in window.wait_events() {
|
|
match event {
|
|
winit::Event::Closed => break,
|
|
_ => ()
|
|
}
|
|
}
|
|
}
|