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

Scancode returns "0" for non-US keyboard layout #53953

Closed
mrvladus opened this issue Oct 18, 2021 · 1 comment
Closed

Scancode returns "0" for non-US keyboard layout #53953

mrvladus opened this issue Oct 18, 2021 · 1 comment

Comments

@mrvladus
Copy link

Godot version

3.3.4

System information

Ubuntu 20.04

Issue description

I have two keyboard layouts: Russian and US. I want to make WASD controls in game.
When I set layout to US everything working fine: keyboard shortcuts("Ctrl+S" etc.), setting WASD inputs, and InputEventKey scancode returns normal values(87 for "W", 65 for "A", 83 for "S", 68 for "D"). But when I set Russian keyboard layout keyboard shortcuts doesn't work, I can't set letter keys(WASD) in Input Map, WASD doesn't work even if i set it using US layout and then switched to Russian. It doesn't matter if layout is switched before launching Godot(or game itself) or after. And InputEventKey scancode returns 0 for ONLY keys with letters, other keys are not affected.

Steps to reproduce

  1. Add second keyboard layout in Ubuntu 20.04 system settings(Russian)
  2. Launch test project and play it
  3. Set keyboard layout to US, try different keys. It should return non-"0" values.
  4. Change layout to Russian, try letter keys again. It returns 0
  5. Try keyboard shortcuts in editor - it doesn't work

Minimal reproduction project

KeyboardLocaleBug.zip

@Chaosus
Copy link
Member

Chaosus commented Oct 18, 2021

Duplicate of #49771

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants