Update README and evtest

This commit is contained in:
Corey Richardson 2015-07-21 05:33:40 -04:00
parent 1ee9a10343
commit c410f1edfb
2 changed files with 11 additions and 11 deletions

View file

@ -6,7 +6,7 @@
[Documentation](https://cmr.github.io/evdev) [Documentation](https://cmr.github.io/evdev)
Nice access to `evdev`. Nice(r) access to `evdev`.
What is `evdev`? What is `evdev`?
=================== ===================
@ -16,16 +16,16 @@ What is `evdev`?
What does this library support? What does this library support?
=============================== ===============================
Device enumeration (by scanning), capability querying, event polling, This library exposes raw evdev events, but uses the Rust `Iterator` trait to
multitouch, and force feedback. Everything that `evdev` supports. do so, and will handle `SYN_DROPPED` events properly for the client. I try to
match [libevdev](http://www.freedesktop.org/software/libevdev/doc/latest/)
closely, where possible.
Writing to devices is not yet supported (eg, turning LEDs on).
Example Example
======= =======
```rust See <examples/evtest.rs> for an example of using this library (which roughly
extern crate evdev; corresponds to the userspace [evtest](http://cgit.freedesktop.org/evtest/)
tool.
fn main() {
// fixme
}
```

View file

@ -23,7 +23,7 @@ fn main() {
println!("{}", d); println!("{}", d);
println!("Events:"); println!("Events:");
loop { loop {
for ev in d.raw_events() { for ev in d.events_no_sync().unwrap() {
println!("{:?}", ev); println!("{:?}", ev);
} }
} }