2019-02-06 02:30:33 +11:00
|
|
|
//! Contains traits with platform-specific methods in them.
|
|
|
|
//!
|
|
|
|
//! Contains the follow OS-specific modules:
|
|
|
|
//!
|
|
|
|
//! - `android`
|
|
|
|
//! - `ios`
|
|
|
|
//! - `macos`
|
|
|
|
//! - `unix`
|
|
|
|
//! - `windows`
|
2019-09-25 09:33:32 +10:00
|
|
|
//! - `web`
|
2019-02-06 02:30:33 +11:00
|
|
|
//!
|
|
|
|
//! And the following platform-specific module:
|
|
|
|
//!
|
2020-11-13 06:49:44 +11:00
|
|
|
//! - `run_return` (available on `windows`, `unix`, `macos`, and `android`)
|
2019-02-06 02:30:33 +11:00
|
|
|
//!
|
|
|
|
//! However only the module corresponding to the platform you're compiling to will be available.
|
2015-04-24 17:51:23 +10:00
|
|
|
|
2022-12-25 18:57:27 +11:00
|
|
|
#[cfg(android_platform)]
|
2019-02-06 02:30:33 +11:00
|
|
|
pub mod android;
|
2022-12-25 18:57:27 +11:00
|
|
|
#[cfg(ios_platform)]
|
2019-02-06 02:30:33 +11:00
|
|
|
pub mod ios;
|
2022-12-25 18:57:27 +11:00
|
|
|
#[cfg(macos_platform)]
|
2019-02-06 02:30:33 +11:00
|
|
|
pub mod macos;
|
2023-01-06 00:58:08 +11:00
|
|
|
#[cfg(orbital_platform)]
|
|
|
|
pub mod orbital;
|
2022-12-25 18:57:27 +11:00
|
|
|
#[cfg(wayland_platform)]
|
2022-09-01 15:05:32 +10:00
|
|
|
pub mod wayland;
|
2022-12-25 18:57:27 +11:00
|
|
|
#[cfg(wasm_platform)]
|
2022-06-12 02:57:19 +10:00
|
|
|
pub mod web;
|
2022-12-25 18:57:27 +11:00
|
|
|
#[cfg(windows_platform)]
|
2019-02-06 02:30:33 +11:00
|
|
|
pub mod windows;
|
2022-12-25 18:57:27 +11:00
|
|
|
#[cfg(x11_platform)]
|
2022-09-01 15:05:32 +10:00
|
|
|
pub mod x11;
|
2015-04-24 17:51:23 +10:00
|
|
|
|
2023-05-29 04:02:59 +10:00
|
|
|
pub mod modifier_supplement;
|
2022-09-01 15:05:32 +10:00
|
|
|
#[cfg(any(
|
2022-12-25 18:57:27 +11:00
|
|
|
windows_platform,
|
|
|
|
macos_platform,
|
|
|
|
android_platform,
|
|
|
|
x11_platform,
|
2023-01-06 00:58:08 +11:00
|
|
|
wayland_platform,
|
|
|
|
orbital_platform
|
2022-09-01 15:05:32 +10:00
|
|
|
))]
|
2020-11-13 06:49:44 +11:00
|
|
|
pub mod run_return;
|
2023-05-29 04:02:59 +10:00
|
|
|
pub mod scancode;
|