File: evtest.rs

package info (click to toggle)
rust-evdev 0.13.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 540 kB
  • sloc: makefile: 2
file content (15 lines) | stat: -rw-r--r-- 310 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! 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:?}");
        }
    }
}