You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
674 B

#![recursion_limit = "1000"]
extern crate libc;
extern crate uinput_sys as ffi;
extern crate nix;
extern crate serde_derive;
#[cfg(feature = "udev")]
extern crate libudev as udev;
use std::path::Path;
mod error;
pub use error::Error;
pub type Result<T> = ::std::result::Result<T, Error>;
pub mod keymapper;
pub use keymapper::KeyMaps;
pub mod device;
pub use device::{Device,InputDevice};
/// Open the default uinput device.
pub fn default() -> Result<device::Builder> {
/// Open the specified uinput device.
pub fn open<P: AsRef<Path>>(path: P) -> Result<device::Builder> {