Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for side mouse buttons #4

Closed
Purarity opened this issue Oct 16, 2021 · 2 comments
Closed

Support for side mouse buttons #4

Purarity opened this issue Oct 16, 2021 · 2 comments

Comments

@Purarity
Copy link

Possible to add support to listen to side mouse buttons XBUTTON1 and XBUTTON2?

@0Ky
Copy link

0Ky commented Sep 19, 2022

Yes, modify the global-mouse-events.cc file, add wParam == WM_XBUTTONUP and wParam == WM_XBUTTONDOWN to the conditional statement at lines 49 & 51, then add the following to the else-if clause at line 64:

} else if (GET_XBUTTON_WPARAM(nMouseData) == XBUTTON1) {
    button = 4;
} else if (GET_XBUTTON_WPARAM(nMouseData) == XBUTTON2) {
    button = 5;
}

xanderfrangos added a commit that referenced this issue Jan 15, 2024
@xanderfrangos
Copy link
Owner

Finally got around to adding this in v1.2.0. 👍

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

No branches or pull requests

3 participants