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 mouse wheel binding #7148

Merged
merged 2 commits into from Dec 29, 2019
Merged

Support mouse wheel binding #7148

merged 2 commits into from Dec 29, 2019

Conversation

MSuih
Copy link
Member

@MSuih MSuih commented Dec 29, 2019

Adds mousewheel as a bindable button to keyboard handler. Theoretically supports 4-directional scroll wheels, but I don't have one to test with.

Since there's no event for "wheel movement has stopped", I've added a check that releases the button on the emulated controller when 0,1 seconds has passed since last wheel scroll to the same direction. This means that the button is considered to being held down as long as you keep scrolling, but it makes button mashing more difficult.

Should support scroll gestures on touchpads as well, but I doubt anyone is interested in trying that in action.

Closes #5396

@Megamouse Megamouse merged commit 6cfcb7b into RPCS3:master Dec 29, 2019
@MSuih MSuih deleted the mousewheel branch December 29, 2019 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Suggestion: Add a mouse wheel to bindable buttons
2 participants