Rename to rusty-keys

This commit is contained in:
Travis Burtrum 2017-09-21 23:27:49 -04:00
parent 3574299a26
commit 00337ce4d4
2 changed files with 16 additions and 16 deletions

View File

@ -1,22 +1,22 @@
[package] [package]
name = "uinput" name = "rusty-keys"
version = "0.1.2" version = "0.0.1"
authors = ["meh. <meh@schizofreni.co>"] authors = ["moparisthebest <admin@moparisthebest.com>"]
license = "WTFPL" license = "AGPLv3"
description = "Linux uinput wrapper." description = "Linux keyboard mapper"
repository = "https://github.com/meh/rust-uinput" repository = "https://code.moparisthebest.com/moparisthebest/rusty-keys"
keywords = ["linux", "input"] keywords = ["linux", "input", "keyboard", "keymapper"]
[dependencies] [dependencies]
libc = "0.2" libc = "0.2"
nix = "0.5" nix = "0.5"
uinput-sys = "0.1" uinput-sys = "0.1"
getopts = "*" getopts = "0.2.15"
toml = "0.4.5" toml = "0.4.5"
serde_derive = "1.0.11" serde_derive = "1.0.11"
serde = "1.0.11" serde = "1.0.11"
[dependencies.libudev] [dependencies.libudev]
optional = true optional = true

View File

@ -1,4 +1,4 @@
extern crate uinput; extern crate rusty_keys;
extern crate uinput_sys as ffi; extern crate uinput_sys as ffi;
extern crate libc; extern crate libc;
extern crate getopts; extern crate getopts;
@ -6,7 +6,7 @@ extern crate getopts;
#[macro_use] #[macro_use]
extern crate nix; extern crate nix;
use uinput::KeyMaps; use rusty_keys::KeyMaps;
use ffi::*; use ffi::*;
use libc::{c_int, input_event}; use libc::{c_int, input_event};
@ -44,7 +44,7 @@ fn main() {
//println!("key_map: {:?}", key_map); //println!("key_map: {:?}", key_map);
let device = uinput::default().expect("1") let device = rusty_keys::default().expect("1")
.name("test").expect("2") .name("test").expect("2")
.event(key_map.values()).expect("3") .event(key_map.values()).expect("3")
//.event(uinput::event::Keyboard::All).unwrap() //.event(uinput::event::Keyboard::All).unwrap()