get touch control example working through /dev/input/event0

This commit is contained in:
Michael Mikovsky
2026-05-03 10:24:54 -06:00
parent a476e5b6d8
commit 8257b14b55
3 changed files with 144 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
# touch
Simple touch input reader for Linux evdev devices.
By default it reads `/dev/input/event0` and prints touch-related events in an
`evtest`-style format:
```sh
sudo cargo run
```
To read another input device, pass the device path:
```sh
sudo cargo run -- /dev/input/event1
```