Skip to content

CNFGWinDriver: fix swapped middle/right mouse button - #130

Merged
cnlohr merged 2 commits into
cntools:masterfrom
hchunhui:fix
Sep 28, 2026
Merged

cnlohr merged 2 commits into
cntools:masterfrom
hchunhui:fix

Conversation

@hchunhui

Copy link
Copy Markdown

Correct the inverted mouse button mapping in the Win32 message loop.
WM_RBUTTONDOWN/UP was incorrectly sending button index 2 instead of 3,
while WM_MBUTTONDOWN/UP was sending 3 instead of 2. This alignment
ensures consistent behavior with X11 and other platform drivers.

@cnlohr

cnlohr commented Jul 19, 2026

Copy link
Copy Markdown
Member

I am confused by this, I didn't notice it when I was just using it earlier this week. Let me double-check this.

@cnlohr

cnlohr commented Sep 28, 2026

Copy link
Copy Markdown
Member

Seems like this was legit.

@cnlohr
cnlohr merged commit 420c6f5 into cntools:master Sep 28, 2026
1 check passed
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.

2 participants