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

Fix IsKeyDown and AreKeysDown Processed Event #90

Closed
wants to merge 9 commits into from
Closed

Fix IsKeyDown and AreKeysDown Processed Event #90

wants to merge 9 commits into from

Conversation

LuaRook
Copy link
Contributor

@LuaRook LuaRook commented May 17, 2022

When the input is processed, then it'll void IsKeyDown and AreKeysDown. Closes #87

When the input is ``processed``, then it'll void ``IsKeyDown`` and ``AreKeysDown``.
Fix IsKeyDown and AreKeysDown Processed Event
@Sleitnick
Copy link
Owner

This has the potential to leak state. If a key is pressed down and isn't marked as processed, but then is marked as processed on the release state, then the state of the key will be stuck. I think the fix for this is to simply remove it from the State table in the InputEnded handler regardless of the processed state.

@LuaRook LuaRook closed this Aug 16, 2022
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.

Input.Keyboard IsKeyDown and AreKeysDown don't take GPE into account
2 participants