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

Document and complete the key remapping codes #142

Closed
micheldebree opened this issue Nov 18, 2021 · 1 comment · Fixed by #143
Closed

Document and complete the key remapping codes #142

micheldebree opened this issue Nov 18, 2021 · 1 comment · Fixed by #143
Labels
enhancement New feature or request

Comments

@micheldebree
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
I cannot remap a function to / and * on the numpad in user.ini

Describe the solution you'd like
I want to be able to assign functions to any key I like, and use numpad keys as separate keys.
I want a list of the keycodes I can use for that.

Describe alternatives you've considered

Additional context

@micheldebree micheldebree added the enhancement New feature or request label Nov 18, 2021
@micheldebree
Copy link
Collaborator Author

micheldebree commented Nov 19, 2021

I suggest we use https://wiki.libsdl.org/SDL_Keycode and use the same names, remove the SDLK_ bit and make it lower case, for example:

@slash maps to SDLK_SLASH
@kp_multiply maps to SDLK_KP_MULTIPLY

This saves us some thinking, and we can refer to the SDL_Keycode documentation instead of documenting our own codes.
Saves typing aswell if we take the SDL keycodes and do some clever copying en replacing.

micheldebree added a commit that referenced this issue Nov 19, 2021
micheldebree added a commit that referenced this issue Nov 19, 2021
* Complete list of keycodes that can be remapped (Fixes #142)

* Added warning about renamed num keycodes to README (#142)

* Removed type from README (#142)
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 a pull request may close this issue.

1 participant