You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While holding the key, click to another tab / window
Release the key
Go back to the example - you'll see that Ebiten thinks that the key is still pressed - the only way to "reset" it is to press the key again
This probably happens because Ebiten doesn't catch "key released" event when out of focus.
I think that Ebiten should poll all input on focus gain if it's possible (that's the only way for it to determine the current state of the keyboard if it lost some events).
The text was updated successfully, but these errors were encountered:
Ebiten stores the whole input state somewhere, right?
I think that it can "reset" every "key pressed" to false on focus gain, and set everything as if nothing is currently being pressed, unless it gets a new "key press" event.
Repro (I tested on Ubuntu 20.04 and Firefox and Chromium):
This probably happens because Ebiten doesn't catch "key released" event when out of focus.
I think that Ebiten should poll all input on focus gain if it's possible (that's the only way for it to determine the current state of the keyboard if it lost some events).
The text was updated successfully, but these errors were encountered: