6c1add8b73
* Prototype support for virtual uinput devices * Tidy uinput a bit * Have all the evtest examples use the same args/prompt code * Switch to libc uinput* structs * Use InputId in uinput, use libc _CNT constants * Don't use align_to_mut * Only check /dev/input/eventN files * Spelling fixup * Fix compilation error * Ah, there we go. Much better. Co-authored-by: Jeff Hiner <jeff-hiner@users.noreply.github.com> Co-authored-by: Noah <33094578+coolreader18@users.noreply.github.com>
15 lines
314 B
Rust
15 lines
314 B
Rust
//! 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);
|
|
}
|
|
}
|
|
}
|