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 back/forward buttons #3655

Merged
merged 1 commit into from
Sep 5, 2022

Conversation

HebaruSan
Copy link
Member

@HebaruSan HebaruSan commented Sep 3, 2022

Background

CKAN's GUI has back/forward buttons that navigate through the mods the user recently clicked.

Some mice have extra buttons for back and forward (typically used in a web browser), and currently these do nothing in CKAN.

Changes

Now we listen for messages that contain XButton events and map them to the existing back/forward navigation. This is done via IMessageFilter.PreFilterMessage in order to react to events regardless of the focus or position of the mouse cursor.

Learned from this: https://stackoverflow.com/a/67698917

@HebaruSan HebaruSan added Enhancement New features or functionality GUI Issues affecting the interactive GUI Pull request labels Sep 3, 2022
Copy link
Member

@techman83 techman83 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a neat little QoL improvement!

@HebaruSan HebaruSan merged commit b514fae into KSP-CKAN:master Sep 5, 2022
@HebaruSan HebaruSan deleted the feature/mouse-back-fwd-btns branch September 5, 2022 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New features or functionality GUI Issues affecting the interactive GUI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants