2021-03-19 15:19:51 +00:00
|
|
|
//! Similar to the evtest tool.
|
2015-07-07 22:31:28 +00:00
|
|
|
|
2021-03-19 15:19:51 +00:00
|
|
|
// cli/"tui" shared between the evtest examples
|
|
|
|
mod _pick_device;
|
2015-07-07 22:31:28 +00:00
|
|
|
|
|
|
|
fn main() {
|
2021-03-19 15:19:51 +00:00
|
|
|
let mut d = _pick_device::pick_device();
|
2015-07-07 22:31:28 +00:00
|
|
|
println!("{}", d);
|
|
|
|
println!("Events:");
|
|
|
|
loop {
|
2021-03-17 02:38:42 +00:00
|
|
|
for ev in d.fetch_events().unwrap() {
|
2015-07-07 22:31:28 +00:00
|
|
|
println!("{:?}", ev);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|