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

New keybinding data format #158

Open
meekee7 opened this issue Apr 2, 2021 · 0 comments
Open

New keybinding data format #158

meekee7 opened this issue Apr 2, 2021 · 0 comments

Comments

@meekee7
Copy link
Contributor

meekee7 commented Apr 2, 2021

In-game commands are assigned to mouse and keyboard keys. Some of those assignments can be changed by the player in the Controls menu. Other commands like Show Hint (F1) are not reassignable.

The keybinding data is stored in a binary array. Adding more commands with assignable keys to while retaining compatibility with previous configuration is very difficult this way. Out-of-game editing of the keybindings by the player is also very difficult.
A new data structure for the keybindings should be devised.
One simple way would be a separate INI file with a very simple structure like this:

[OTPKeyBindings]
Jump=Q
Crouch=Z
Hand=LMB
...

Importing the binary key assignment format from previous INI files or the registry should remain possible.

This was referenced Apr 2, 2021
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

No branches or pull requests

1 participant