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

Improve KeyBind data handling #1322

Closed
wants to merge 1 commit into from
Closed

Conversation

zpl-zak
Copy link
Contributor

@zpl-zak zpl-zak commented Jun 6, 2019

This PR tries to tackle issues mentioned by #1320 (comment) by adding simple error resolution measurements to ensure backward and forward compatibility of the game.

Unknown actions will now be ignored by the InputManager, but kept in memory, so we can store them back to the settings file once we rebuild it.

This way, we can store unknown actions back, so newer builds won't lose the ability to use them.

Change KeyBindData_v1 format to handle unknown actions better

This modifies how the game loads in new keybindings and makes sure unknown actions get ignored.
@Interkarma
Copy link
Owner

I'm looking into adding a new binding UI a bit later in project, and may overhaul how bindings work to solve this same problem in a different manner. At this time though, I'm not wanting to change available keybinds or adjust how this is handled. I'm sorry for any inconvenience caused.

@Interkarma Interkarma closed this Jun 21, 2019
@zpl-zak
Copy link
Contributor Author

zpl-zak commented Jun 21, 2019

Hi,

no problem with that, I'm looking forward to the changes.

Interkarma added a commit that referenced this pull request Mar 4, 2020
Credit to @zaklaus for these changes, originally in #1322.
Will keep JSON data for keybinds, so these changes are sensible and helpful. Thankyou @zaklaus. 👍
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

Successfully merging this pull request may close these issues.

None yet

2 participants