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

Mouse support for scroll and extra buttons #33

Closed
13minutes-yt opened this issue Jul 14, 2022 · 2 comments · Fixed by #98
Closed

Mouse support for scroll and extra buttons #33

13minutes-yt opened this issue Jul 14, 2022 · 2 comments · Fixed by #98
Labels
enhancement New feature or request

Comments

@13minutes-yt
Copy link

Is it doable for including more mouse support as in default x11.

1 = left button
2 = middle button (pressing the scroll wheel)
3 = right button
4 = turn scroll wheel up
5 = turn scroll wheel down
6 = push scroll wheel left
7 = push scroll wheel right
8 = 4th button (aka browser backward button)
9 = 5th button (aka browser forward button)
@jtroo
Copy link
Owner

jtroo commented Jul 14, 2022

I was playing around with this when adding mouse buttons and I found that using the scroll buttons (4-7) aren't simple to do as sending the button press. The button press can be sent but I found the input was ignored. There's a separate type of event that needs to be sent to uinput (EV_REL and REL_WHEEL).

It's certainly doable but I was too lazy to do it when I added the three mouse buttons, which is all I cared about at the time.

For browser back and forward, there are buttons (not the mouse buttons though) already added: fwd+bck. If you want the specific mouse buttons though, it shouldn't be too hard to add it. I didn't bother to add it myself though since it doesn't work due to a limitation in the VM driver, and the keyboard forward/back worked for my needs.

@13minutes-yt
Copy link
Author

The right mouse button (mrgt) is a savior in Linux with all these touchpads and drivers. The wheel I use for zooming, using another app for that(though I am trying to ditch it like I ditched xcape). fwd+bck are great additions, I missed seeing them.

Keep up the good work.!

@jtroo jtroo added the enhancement New feature or request label Jul 14, 2022
@jtroo jtroo changed the title Mouse support Mouse support for scroll and extra buttons Jul 22, 2022
@jtroo jtroo closed this as completed in #98 Aug 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants