Go to file
Daniel Barlow 18139e39c7 add command-line arg for input device to read from
also an error message if /dev/uinput can't be opened
2022-08-15 22:05:34 +01:00
Makefile initial working version 2022-08-15 09:44:37 +01:00
README.md add initial README file 2022-08-15 10:02:50 +01:00
adb-forward-touch.c add command-line arg for input device to read from 2022-08-15 22:05:34 +01:00
build.nix initial working version 2022-08-15 09:44:37 +01:00
default.nix initial working version 2022-08-15 09:44:37 +01:00

README.md

adb-forward-touch

When run on a Linux computer with an Android phone attached, it will run getevent on the phone and pass touchscreen events into the Linux input event system using uinput, so that it appears as a touchpad input to other apps on the Linux machine.

Building

If you are using Nix, nix-build build.nix. Otherwise try make

Caveats

  • WIP!

  • the touchscreen /dev entry is hardcoded in, needs to be a command-line parameter (or detected)

  • the touchscreen configuration (dimensions, axes, najme, USB ids etc) are hardcoded likewise.

  • if your phone is locked/screen off then it will appear to work but you may get garbage X values. This is due ot the way some ANdroid phones implement wake gestures