Blub / netevent

Input-Event device cloning utility. Use it together with ssh/netcat/... to share input devices among different machines.
GNU General Public License v2.0
148 stars 14 forks source link

Touchscreen support? #26

Open CCF100 opened 2 years ago

CCF100 commented 2 years ago

I have an All-In-One that I use as a monitor, but I would like to also use the touchscreen built-in to it with my main desktop...

example output from libinput: https://youtu.be/dDa6S5QGMug

Blub commented 2 years ago

Could I see the output of evtest instead of the libinput debug one? I haven't read through libinput. (And wouldn't that be somewhat inconvenient to use?)

jcronenberg commented 1 year ago

Actually touchscreens seem to work just fine for me since they normally just send EV_ABS and EV_KEY events. However, touchscreens don't work well with hotkeys, since well there aren't really any events suitable for toggling. So for me at least it was best to enable grabbing and writing when starting. Here is a example config:

# file: netevent-setup.ne2
# Add touchscreen
device add mytouch /dev/input/by-id/usb-Touch

# Connect to the device via password-less ssh
output add myremote exec:ssh user@other-host netevent create
# Select the output to write to
use myremote
# Enable grabbing and writing immediately
grab-devices on
write-events on

And yes it is normally awkward to use but makes sense in some special situations.