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

Events polled via SDL_PollEvent temporarily have type SDL_KEYUP and SDL_GetModState loses modifier while key is continuously pressed #12265

Open
janmarti3 opened this issue Feb 11, 2025 · 0 comments

Comments

@janmarti3
Copy link

While having e.g. left-Ctrl continuously pressed, it can be observed that the function SDL_PollEvent generates SDL_EventType::SDL_KEYDOWN events with SDL_GetModState returning SDL_Keymod::KMOD_LCTRL as expected. However, at random intervals, for just one cycle, it unexpectedly generates an SDL_KEYUP event with SDL_GetModState returning KMOD_NONE and therefore temporarily loses the actual state.

SDL Version: 2.28.2, System: Ubuntu 22.04.5 LTS

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

1 participant