README.md (924B)
1 # adb-forward-touch 2 3 When run on a Linux computer with an Android phone attached, it will 4 run `getevent` on the phone and pass touchscreen events into the Linux 5 input event system using uinput, so that it appears as a touchpad 6 input to other apps on the Linux machine. 7 8 ## Building 9 10 If you are using Nix, `nix-build build.nix`. Otherwise try `make` 11 12 13 ## Caveats 14 15 * WIP! 16 17 * the touchscreen `/dev` entry is hardcoded in, needs to be a 18 command-line parameter (or detected) 19 20 * the touchscreen configuration (dimensions, axes, najme, USB ids etc) 21 are hardcoded likewise. 22 23 * if your phone is locked/screen off then it will appear to work but you may get 24 garbage X values. This is due ot the way some ANdroid phones implement [wake gestures](https://github.com/boulzordev/android_kernel_motorola_msm8953/commit/ee12d4d8d5ad0e345582ab276b706b414409a6aa#diff-c55cacf3f59470057b2f39a86348c67601229a6e09edd07618db1680e97520c3R4733) 25