#![allow(clippy::module_inception)]
pub use self::platform::*;
#[cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd"))]
#[path = "linux/mod.rs"]
mod platform;
#[cfg(target_os = "macos")]
#[path = "macos/mod.rs"]
mod platform;
#[cfg(all(not(feature = "xinput"), not(feature = "wgi")))]
compile_error!(
"Windows needs one of the features `gilrs/xinput` or `gilrs/wgi` enabled. \nEither don't use \
'default-features = false' or add one of the features back."
);
#[cfg(all(feature = "wgi", feature = "xinput"))]
compile_error!("features `gilrs/xinput` and `gilrs/wgi` are mutually exclusive");
#[cfg(all(target_os = "windows", feature = "xinput", not(feature = "wgi")))]
#[path = "windows_xinput/mod.rs"]
mod platform;
#[cfg(all(target_os = "windows", feature = "wgi"))]
#[path = "windows_wgi/mod.rs"]
mod platform;
#[cfg(target_arch = "wasm32")]
#[path = "wasm/mod.rs"]
mod platform;
#[cfg(all(
not(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd")),
not(target_os = "macos"),
not(target_os = "windows"),
not(target_arch = "wasm32")
))]
#[path = "default/mod.rs"]
mod platform;