libinput user devices use case

Nicolas Fella nicolas.fella at gmx.de
Sun Oct 6 16:47:00 BST 2019


Hi Peter,

I enjoyed your talk at XDC and come to you with a potential use case for
libinput user devices.

I'm one of the developers of KDE Connect (https://community.kde.org/
KDEConnect), which amongst other things allows one to send mouse/keyboard
events from the phone to a PC. On X11 we use XTest for mouse and libFakeKey
for keyboard input. On Wayland we use a KWin-specific protocol for mouse input,
but we don't have support for other compositors and no support for keyboard
input at all. Obviously that's something we'd like to change.

Would it be possible/reasonable to use libinput user devices to make KDE
Connect act as such a device and inject fake events into other applications?
This would not only solve the issue of supporting multiple compositors but
would also enable interesting new use cases such as making the phone act as a
real (multitouch) touchpad or touchscreen.

What do you think?

Thanks

Nico & the KDE Connect team




More information about the KDEConnect mailing list