Skip to content

Commit aa91832

Browse files
committedJul 4, 2023
Android: Implement EventLoopExtPumpEvents and EventLoopExtRunOnDemand
1 parent 625f9a2 commit aa91832

File tree

2 files changed

+217
-150
lines changed

2 files changed

+217
-150
lines changed
 

‎src/platform/mod.rs

+11-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
99
//! - `windows`
1010
//! - `web`
1111
//!
12-
//! And the following platform-specific module:
12+
//! And the following platform-specific modules:
1313
//!
14+
//! - `run_ondemand` (available on `android`)
15+
//! - `pump_events` (available on `android`)
1416
//! - `run_return` (available on `windows`, `unix`, `macos`, and `android`)
1517
//!
1618
//! However only the module corresponding to the platform you're compiling to will be available.
@@ -32,7 +34,12 @@ pub mod windows;
3234
#[cfg(x11_platform)]
3335
pub mod x11;
3436

35-
pub mod modifier_supplement;
37+
#[cfg(any(android_platform))]
38+
pub mod run_ondemand;
39+
40+
#[cfg(any(android_platform,))]
41+
pub mod pump_events;
42+
3643
#[cfg(any(
3744
windows_platform,
3845
macos_platform,
@@ -42,4 +49,6 @@ pub mod modifier_supplement;
4249
orbital_platform
4350
))]
4451
pub mod run_return;
52+
53+
pub mod modifier_supplement;
4554
pub mod scancode;

0 commit comments

Comments
 (0)
Please sign in to comment.