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

Create keybinds based on keycodes for non-US keyboards #116

Open
FeldrinH opened this issue May 9, 2021 · 2 comments
Open

Create keybinds based on keycodes for non-US keyboards #116

FeldrinH opened this issue May 9, 2021 · 2 comments

Comments

@FeldrinH
Copy link

FeldrinH commented May 9, 2021

I have a keyboard with a non-US layout, and I would like to use some of the keys with non-english characters on it for custom keybinds. However, since I also often switch between US and native keyboard layout (Estonian), I would like to create these bindings in such a way that they map the specific key, rather than the character.

Currently this can be done for some keys, eg. RBracket and LBracket, which show up in the verbose log as key: Some(LBracket) , however, many keys show up as key: Some(Unknown) and as such I assume they cannot be used in keybinds.

Is there some way to map actions to these keys based on their keycode/scancode. If not, could this feature be added?

@FeldrinH FeldrinH changed the title Create bindings based on keycodes for non-US keyboards Create keybinds based on keycodes for non-US keyboards May 9, 2021
@cloudhead
Copy link
Owner

Hmm I see. So the keys you're pressing are not recognized by GLFW, which means they are probably not part of the US layout. You get a keycode though? I guess it's possible technically to bind a command to a keycode, it would require a change to the keybinding functionality.

@hendursaga
Copy link

Perhaps this is a duplicate of #89?

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

3 participants