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

Linux: SDL_SCANCODE_LGUI, SDL_GetKeyboardState #12227

Open
agreppin opened this issue Feb 8, 2025 · 1 comment
Open

Linux: SDL_SCANCODE_LGUI, SDL_GetKeyboardState #12227

agreppin opened this issue Feb 8, 2025 · 1 comment

Comments

@agreppin
Copy link

agreppin commented Feb 8, 2025

SDL release-3.2.4:

  1. I don't receive any event with SDL_SCANCODE_LGUI.
  2. ks = SDL_GetKeyboardState(&n), ks[SDL_SCANCODE_LGUI] is never set

Tested on Ubuntu 24.04.1 LTS, Wayland, pressing LGUI+F3 or LGUI-i
Note: emacs-gtk says those keys are undefined, so not bound to the window manager.

Edit 1:
ks[SDL_SCANCODE_LGUI] is set when pressing CTRL+LGUI

@Kontrabant
Copy link
Contributor

Kontrabant commented Feb 10, 2025

Out of curiosity, does the key event arrive if you call SDL_SetWindowKeyboardGrab() on your window? Even if the keys are undefined, something might still be eating the key press before it reaches your app/game.

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

2 participants