mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-31 13:50:05 -04:00
11
xbuild/android-target/src/lib.rs
Normal file
11
xbuild/android-target/src/lib.rs
Normal file
@@ -0,0 +1,11 @@
|
||||
use winit::platform::android::{activity::AndroidApp, EventLoopBuilderExtAndroid};
|
||||
|
||||
#[no_mangle]
|
||||
fn android_main(app: AndroidApp) {
|
||||
winit::event_loop::EventLoopBuilder::new()
|
||||
.with_android_app(app)
|
||||
.build()
|
||||
.unwrap()
|
||||
.run(|_, _| todo!())
|
||||
.ok();
|
||||
}
|
||||
Reference in New Issue
Block a user