1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! A platform-agnostic joystick / gamepad / controller library for Rust.

#![allow(clippy::cast_lossless)]
#![allow(clippy::new_without_default)]

#![warn(missing_docs)]
#![doc(
    html_logo_url = "https://jeronaldaron.github.io/stick/res/icon.svg",
    html_favicon_url = "https://jeronaldaron.github.io/stick/res/icon.svg"
)]

mod devices;

pub use devices::{Btn, Device, Port};

#[cfg(target_os = "android")]
mod ffi {
    mod android;
    pub use self::android::NativeManager;
}
#[cfg(all(not(target_os = "macos"), unix))]
mod ffi {
    mod linux;
    pub use self::linux::NativeManager;
}
#[cfg(target_os = "macos")]
mod ffi {
    mod macos;
    pub use self::macos::NativeManager;
}
#[cfg(target_os = "windows")]
mod ffi {
    mod windows;
    pub use self::windows::NativeManager;
}

pub(crate) use self::ffi::NativeManager;