evdevil 0.4.0

Bindings to Linux' input device APIs: evdev and uinput
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::io;

/// Tests that all devices on the local system can be enumerated, and that `EventReader`
/// successfully synchronizes.
#[test]
fn enumerate_local_devices() -> io::Result<()> {
    for res in evdevil::enumerate()? {
        let (_, evdev) = res?;
        let mut reader = evdev.into_reader()?;
        reader.update()?;
    }

    Ok(())
}