#pen #gui #gamedev #pressure #read #evdev

bin+lib theobserver

A library to read pen pressure using evdev

2 unstable releases

0.2.0 Oct 19, 2023
0.1.0 Oct 18, 2023

#1573 in Game dev

22 downloads per month

MIT license

6KB
137 lines

fn main() {
    let device = theobserver::get_device();
    let mut pen = theobserver::watch_device(device);

    loop {
        pen.process_events();
        println!("pressure: {}", pen.pressure());
    }
}

Dependencies

~4.5MB
~100K SLoC