Skip to content

feat: enable middle mouse button support in uinput device#18

Open
lowlevel-1989 wants to merge 1 commit into
PortsMaster:masterfrom
lowlevel-1989:fix/enable-mouse-middle-button
Open

feat: enable middle mouse button support in uinput device#18
lowlevel-1989 wants to merge 1 commit into
PortsMaster:masterfrom
lowlevel-1989:fix/enable-mouse-middle-button

Conversation

@lowlevel-1989
Copy link
Copy Markdown

Summary
This PR enables the middle mouse button functionality in the virtual uinput device. Previously, the middle click was defined in the key mappings but was not being registered as a capability of the virtual device, causing the OS to ignore the signal.

Changes
keyboard.c: Added ioctl(fd, UI_SET_KEYBIT, BTN_MIDDLE) within the setupFakeKeyboardMouseDevice function to explicitly register the middle button capability with the Linux kernel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant