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

Add function to reset key bindings #137

Open
collinsmith opened this issue Jan 14, 2021 · 0 comments
Open

Add function to reset key bindings #137

collinsmith opened this issue Jan 14, 2021 · 0 comments

Comments

@collinsmith
Copy link
Owner

Add console command to reset key bindings to their default values. Default values passed via key creation are not actually preserved -- perhaps it makes sense to preserve them and provide an API to reset them to their default value via some console command.

Preface:
LibGDX decided to change constants around for the keys causing an issue with saved keys. This was fixed by temporarily having com.riiablo.GdxKeyMapper#load(MappedKey) return null, i.e., the initial value is never changed to a loaded one from the preferences, and when the program terminated, the default values were saved instead. I don't expect anyone to know how to do this themselves, so this issue should be solved to protect me from any further LibGDX key const changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant