evdev-rs/examples/evtest.rs

16 lines
314 B
Rust
Raw Normal View History

//! Similar to the evtest tool.
// cli/"tui" shared between the evtest examples
mod _pick_device;
fn main() {
let mut d = _pick_device::pick_device();
println!("{}", d);
println!("Events:");
loop {
for ev in d.fetch_events().unwrap() {
println!("{:?}", ev);
}
}
}