Blub/netevent

Touchscreen support?

Opened this issue · 2 comments

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

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?)

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.