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

Refactor combo key logic #182

Merged

Conversation

MattSturgeon
Copy link
Member

Hooking into vanilla's KeyMapping.setDown() allows use to greatly simplify the logic in FreecamComboKeyMapping.tick() without any change in behaviour.

This is just small improvements I made while investigating #175. An actual fix for that will be separate, if I can even come up with a good solution...

@MattSturgeon MattSturgeon added the enhancement New feature or request label Feb 28, 2024
@MattSturgeon MattSturgeon self-assigned this Feb 28, 2024
@MattSturgeon MattSturgeon force-pushed the config/combo-key-refactor branch from b6052e8 to a1b7ed8 Compare February 28, 2024 17:56
Copy link
Collaborator

@hashalite hashalite left a comment

Choose a reason for hiding this comment

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

Looks good, thank you!

Hook into `setDown()` so that we can simplify `tick()`.
@MattSturgeon MattSturgeon force-pushed the config/combo-key-refactor branch from a1b7ed8 to d8efdf9 Compare April 1, 2024 05:13
@MattSturgeon MattSturgeon requested a review from hashalite April 1, 2024 05:13
@MattSturgeon MattSturgeon merged commit 49651d4 into MinecraftFreecam:main Apr 1, 2024
@MattSturgeon MattSturgeon deleted the config/combo-key-refactor branch April 1, 2024 05:50
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 this pull request may close these issues.

2 participants