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

Keyboard idiosyncrasies #1606

Open
fawtytoo opened this issue Jul 10, 2023 · 3 comments
Open

Keyboard idiosyncrasies #1606

fawtytoo opened this issue Jul 10, 2023 · 3 comments

Comments

@fawtytoo
Copy link

I use the Dvorak keyboard layout. If I configure "Y" for strafe right, it works as expected. But when I quit Chocolate, I have to press "F" instead of "Y". "F" on Dvorak is where "Y" is on Qwerty.

@turol
Copy link
Member

turol commented Jul 10, 2023

It's stored in config as ASCII. The key event is mapped to ASCII by scancode:

if (scancode >= 0 && scancode < arrlen(scancode_translate_table))

scancode depends on the position of the key on the keyboard and not on the symbol it produces. Working as intended I guess and changing it at this point would not be easy.

@fabiangreffrath
Copy link
Member

You may want to disable the Vanilla Keyboard Mapping config key:

// If true, keyboard mapping is ignored, like in Vanilla Doom.
// The sensible thing to do is to disable this if you have a non-US
// keyboard.
int vanilla_keyboard_mapping = true;

@fawtytoo
Copy link
Author

Hmmm. So that is stored in chocolate-doom.cfg too. I set it to 0 but no difference.

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