wlcs icon indicating copy to clipboard operation
wlcs copied to clipboard

Using uinput instead of create_pointer/touch?

Open jexposit opened this issue 9 months ago • 1 comments

Hi!

In order to integrate wlcs into a compositor, it is required to implement functions to handle emulation of pointer and touch devices. I imagine keyboard, tablet and other devices will be required in the future.

Is there a reason to not use uinput instead? https://kernel.org/doc/html/latest/input/uinput.html

uinput allows to emulate input devices from userspace. The only caveat is that root permissions are required.

Would it be possible to use uinput in wlcs to reduce integration code? Is there a technical reason (root?) I'm missing that doesn't allow to use uinput?

jexposit avatar May 17 '24 09:05 jexposit