-
-
Notifications
You must be signed in to change notification settings - Fork 183
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
Event RawKeyUpEvent is never handled #379
Comments
Hi @mel-mouk ! Thanks so much for contacting. |
Thanks! Let me know if I can help, I love Bonfire and I plan to build on top of it so I would be happy to contribute if I can |
Can totally confirm this with You can reproduce this here: Keep pressing |
In the version |
@RafaelBarbosatec works like a charm for me! |
Hi,
The Joystick never triggers UP event from keyboard. (Bonfire 2.12.0).
After investigation, I noticed that
keysPressed.isEmpty
is always true forRawKeyUpEvent
.So in
lib/joystick/joystick.dart
line 160 the condition is true and we never reach the check for RawKeyUpEvent.My understanding is that this condition is useful to trigger Idle when we stop moving. So I think the fix might be to refactor this to check if we're processing a directional event or an action before checking this.
But as I'm new to Bonfire I think I might lack some context.
I also noticed an issue when pressing multiple keys. I'm trying to run when pressing shift. If I press the directional keys first, it works. But if I press shift first, directional keys appear in keysPressed but is not the one in the event.logicalKeys which break the behavior.
The text was updated successfully, but these errors were encountered: