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

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

#1049 in Game dev

Download history 7/week @ 2024-02-22 4/week @ 2024-02-29 20/week @ 2024-03-28 12/week @ 2024-04-04 55/week @ 2024-04-11

87 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

~3.5MB
~80K SLoC