1 unstable release

0.1.0 Mar 25, 2019

#10 in #key-events

BSD-3-Clause

7KB
145 lines

libspnav

crates.io

Minimal Rust wrapper around libspnav providing a type-safe interface.

Documentation

Optional features

  • serde-serialize - Make key event structs serializable.

Limitations

The wrapper currently only supports the non-X11 based method for communicating with spacenavd (UNIX domain socket). X11 support will be considered in the future.


lib.rs:

All the functions in this crate have identical functionality to the underlying libspnav library, with the key change being the use of a Rust enum to represent the events returned by wait_event() safely.

Dependencies

~34–475KB
~11K SLoC