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

KeyboardState contains Keys.None for some keys #411

Open
theranix opened this issue Feb 14, 2023 · 1 comment
Open

KeyboardState contains Keys.None for some keys #411

theranix opened this issue Feb 14, 2023 · 1 comment
Labels

Comments

@theranix
Copy link

theranix commented Feb 14, 2023

FNA_KEYBOARD_USE_SCANCODES is false

  • When en keyboard is used pressing keys "[];',./" works - everything i ok
mod: SDL2.SDL.SDL_Keymod.KMOD_NONE
scancode: SDL2.SDL.SDL_Scancode.SDL_SCANCODE_COMMA
sym: SDL2.SDL.SDL_Keycode.SDLK_COMMA
  • When cyrillic keyboard is used pressing the same keys doesn't work
mod: SDL2.SDL.SDL_Keymod.KMOD_NONE
scancode: SDL2.SDL.SDL_Scancode.SDL_SCANCODE_COMMA
sym: 1073

Is it be right solution if I fix it by adding new records to INTERNAL_keyMap? Or it will not work with different keyboard layouts?

@flibitijibibo
Copy link
Member

If SDL recognizes them, we can add them to our dictionary as well - if you happen to know the char as well that will be helpful too, since the integer value is sometimes hard to parse when looking things up in the future (you'll see examples in SDL2_FNAPlatform).

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

No branches or pull requests

2 participants