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

wrap pollEvent() to guarantee all loops handle modifiers #477

Merged
merged 3 commits into from
Nov 23, 2024

Conversation

NQNStudios
Copy link
Collaborator

@NQNStudios NQNStudios commented Nov 21, 2024

This was meant to address #476 but doesn't actually solve the problem. Still might be a good change, though--

We're calling pollEvent on a lot of windows all over the place, and I see a lot of places (maybe only for a few frames, but still) where events never seem to reach kb.handleModifier() which is crucial for not letting modifier key state get stuck on MacOS.

So I wrapped pollEvent(), and if we always use the wrapper, handleModifier() will always be called.

Co-authored-by: Celtic Minstrel <[email protected]>
@CelticMinstrel CelticMinstrel merged commit b441401 into calref:master Nov 23, 2024
6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants