1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#[macro_use] extern crate lazy_static; use std::sync::{Arc, Mutex}; use std::collections::hash_map::HashMap; #[cfg(target_os = "windows")] mod windows; #[cfg(target_os = "windows")] pub use windows::*; #[cfg(target_os = "windows")] pub use windows::inputs::*; #[cfg(target_os = "linux")] mod linux; #[cfg(target_os = "linux")] pub use linux::*; #[cfg(target_os = "linux")] pub use linux::inputs::*;