使用 evdev 读取笔压的库
所有者 jas-dzied.
#1363 在 游戏开发
6KB 137 行
fn main() { let device = theobserver::get_device(); let mut pen = theobserver::watch_device(device); loop { pen.process_events(); println!("pressure: {}", pen.pressure()); } }
~3.5MB ~82K SLoC