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
Add method to check if all inputs are pressed #11010
Conversation
Can you talk a bit about the motivation here? The all_pressed and maybe all_just_pressed forms make some sense as building blocks for chords, but I'm not seeing the full picture here. |
Yes, I meant them in a sense of using chords, also as we have |
I kinda see how If somebody would want to implement a "press multiple keys simultaneously" mechanic they would need to do that manually anyway, they would need to add some "reaction threshold" window and each frame check if keys were pressed during this time window, because otherwise you are making the game difficulty dependent on frame rate, and realistically impossible, because nobody would press keys simultaneously and consistently within <16ms window. |
Agreed, I think we should add |
I haven't thought about that, I only needed |
033c7a5
to
fe21ea9
Compare
Objective
Solution
all_pressed
method that checks if all inputs are currently being pressed.