Crates.io | theobserver |
lib.rs | theobserver |
version | 0.2.0 |
source | src |
created_at | 2023-10-18 20:31:43.884129 |
updated_at | 2023-10-19 11:47:27.311262 |
description | A library to read pen pressure using evdev |
homepage | https://codeberg.org/may/theobserver/src/branch/main |
repository | https://codeberg.org/may/theobserver/src/branch/main |
max_upload_size | |
id | 1007167 |
size | 10,896 |
fn main() {
let device = theobserver::get_device();
let mut pen = theobserver::watch_device(device);
loop {
pen.process_events();
println!("pressure: {}", pen.pressure());
}
}