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 layout issues #4187
Comments
Might be a duplicate of #4142 and #3471, see #4142 (comment) for more info. |
If possible, can you try again with #4303 applied? |
|
Obtaning the keysym with But I wonder if this info could help to solve the problem. Also:
|
The SDL_KEYMAPCHANGED event never occurs (this event is supposed to occur when the layout is switched).
Field key.keysym.sym (type SDL_Keycode) of SDL_Event (used when type=SDL_KeyboardEvent), sticks to a single layout (mostly the one that's enabled when the app is started, but not always), so that regardless whether the layout is changed or not afterwards, all the keycodes are obtained like the layout has never been changed (e.g. I start the app when the russian layout is enabled, then I switch to the english one, but when SDL_KeyboardEvent occurs, key.keysym.sym is filled with russian letter keycodes unless I restart the app).
The same way, SDL_GetKeyFromScancode and SDL_GetScancodeFromKey are supposed to return values depending on the current layout, but always use the starting layout.
My OS is Arch Linux, the SDL version is 2.0.14. Tested both on Wayland and X11.
The text was updated successfully, but these errors were encountered: