No description
Find a file
Corey Richardson f85abbf1df
Merge pull request #15 from nowakf/relativeaxis
Missing constants for relative axes
2019-07-01 00:24:57 -07:00
examples Update README and evtest 2015-07-21 05:33:40 -04:00
src Missing constants for relative axes 2019-06-30 13:05:59 +02:00
.gitignore Initial commit 2015-05-29 14:57:46 -04:00
.travis.yml Add GH_TOKEN 2015-07-21 08:07:36 -04:00
Cargo.toml Bump version to 0.10.1 2017-06-17 09:12:13 -04:00
README.md Fix all the current issues: 2017-04-27 19:42:45 -04:00

evdev

Travis Crates.io

Documentation

Nice(r) access to evdev devices.

What is evdev?

evdev is the Linux kernel's generic input interface. This crate exposes access to these sorts of input devices. There is some trickery involved, so please read the crate documentation.

What does this library support?

This library exposes raw evdev events, but uses the Rust Iterator trait to do so, and will handle SYN_DROPPED events properly for the client. I try to match libevdev closely, where possible.

Writing to devices is not yet supported (eg, turning LEDs on).

There is no abstraction for gamepad-like devices that allows mapping button numbers to logical buttons, nor is one planned. Such a thing should take place in a higher-level crate, likely supporting multiple platforms.

Example

See <examples/evtest.rs> for an example of using this library (which roughly corresponds to the userspace evtest tool.