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

Held key when game loses focus #14

Open
Apostolique opened this issue Nov 3, 2021 · 1 comment
Open

Held key when game loses focus #14

Apostolique opened this issue Nov 3, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@Apostolique
Copy link
Owner

When a key is held and the game loses focus (IsActive becomes false), it's possible for the player to let go of that key. When that happens the Released() condition doesn't fire. It might be useful to consider the focus loss to be the same as letting go of the key.

@Apostolique Apostolique added the bug Something isn't working label Nov 3, 2021
@Apostolique
Copy link
Owner Author

There's another case to consider. When clicking away from the window, that click will trigger Held(). The fix should be the same as what's done in Pressed() with IsMouseValid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant