-
-
Notifications
You must be signed in to change notification settings - Fork 124
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
game_loop and winit_input_helper do not appear to be compatible (invaders example) #270
Comments
I remember having some issues when I integrated I'm trying to recall exactly what those issues were while working on #252. I think the reason I ended up with the code as it is today (not checking the result of It's just serendipitous that If I were to refactor this code again, I would remove That said, I am now beginning to wonder if |
Looks like doing your own input accumulation is better in the short term, anyway. The current behavior of |
Wow thanks for the insanely thorough investigation and quick fix attempt. :o |
I tested our your branch as a dependency and it resolved my issues, thank you! :) |
Hi, just thought I'd chip in and say I've released version 0.9.0 of game-loop that, once integrated, should resolve this problem. Cheers. |
* Update dependencies - Closes #270 * Unify controls in Invaders example The fire button on gamepads was allowing trapid fire when holding the button. Keyboard controls required the fire key to be released between each shot fired. This commit fixes the difference by making the gamepad fire button act like the keyboard fire key.
* Update dependencies - Closes parasyte#270 * Unify controls in Invaders example The fire button on gamepads was allowing trapid fire when holding the button. Keyboard controls required the fire key to be released between each shot fired. This commit fixes the difference by making the gamepad fire button act like the keyboard fire key.
I was using your invaders example as a reference and ran into an issue.
This isn't something you can fix, but thought I'd let you know.
g.game.input.update(&event)
never returns true, which means the state can never be guaranteed to be cleared.Ex. This will never run the keyboard events, and if I remove the if guard the keyboard state remains between events and I get multiple false positives.
The only state you care about is the example is key_pressed and window_resized, for actions that don't care about repeat triggers. Add a print statement to see what I mean.
The text was updated successfully, but these errors were encountered: