Opening a Window on keyboard_input.just_pressed
makes it trigger again
#12273
Labels
A-Input
Player input via keyboard, mouse, gamepad, and more
A-Windowing
Platform-agnostic interface layer to run your app in
C-Bug
An unexpected or incorrect behavior
S-Needs-Investigation
This issue requires detective work to figure out what's going wrong
Bevy version
0.13
[Optional] Relevant system information
Windows 11
What you did
I made a system similar to the one in the
keyboard_input
example. But on the check whether the keyA
was just pressed, I then spawn a window.What went wrong
It spams opening new windows, the
just_pressed
is held for multiple frames.I think this happens because it opens a new window, thus the focus is on the new window and the press counts as a new press?
The text was updated successfully, but these errors were encountered: