#pen #gamedev #pressure #gui #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

#1555 in Game dev

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

~3.5MB
~80K SLoC