Commit Graph

4 Commits

Author SHA1 Message Date
Hajime Hoshi 8d421df739 internal/ui: bug fix: move handling mod keys to ui.InputState
Closes #3320
2025-09-24 04:57:33 +09:00
Hajime Hoshi 27b6b3c633 internal/ui: bug fix: key/mouse button inputs were sometimes missed
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
2025-09-23 18:04:39 +09:00
Hajime Hoshi 244510643c ebiten: keep TouchID int by using a generics function 2025-09-21 18:48:41 +09:00
Hajime Hoshi 6aa208e15e ebiten: refactoring: add internal/inputstate
internal/inputstate will be accessed from inpututil in the future.

Updates #3249
2025-09-21 18:37:27 +09:00