#![recursion_limit = "1000"] extern crate libc; extern crate uinput_sys as ffi; #[macro_use] extern crate nix; #[macro_use] extern crate custom_derive; #[macro_use] extern crate enum_derive; #[cfg(feature = "udev")] extern crate libudev as udev; use std::path::Path; mod error; pub use error::Error; pub type Result = ::std::result::Result; pub mod event; pub use event::Event; pub mod device; pub use device::Device; /// Open the default uinput device. pub fn default() -> Result { device::Builder::default() } /// Open the specified uinput device. pub fn open>(path: P) -> Result { device::Builder::open(path) }