bendahl / uinput

Go wrapper for uinput on LINUX
MIT License
95 stars 30 forks source link

Added ioctl UI_DEV_SETUP call before UI_DEV_CREATE #34

Closed gslandtreter closed 1 year ago

gslandtreter commented 1 year ago

The current implementation using fwrite() was causing new device events not to be properly identified on Wayland (Sway), rendering the udevice useless.

This change moves the code closer to the reference kernel impl from https://kernel.org/doc/html/v6.2/input/uinput.html

bendahl commented 1 year ago

Hey @gslandtreter,

thanks for the fix! Also, thanks for pointing out the relevant bit of documentation! This looks good to me. Approved!

Cheers, Ben