mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2026-04-22 15:57:15 +08:00
27b6b3c633
If a key down and a key up happened in one tick, Ebitengine ignored these events and users failed to notice the key press. This was problematic in real world use caess, e.g. click by a tap on macOS browsers. This change fixes this issue by recording the tick for both a press and a release, and determine whether the key/button is pressed or not more precisely. Updates #2898 Closes #3137 Closes #3249 Updates #3317