ebiten
ebiten copied to clipboard
inpututil: add a function to get the last touch position just before releasing
Requested by @midorimici
Yes! I am currently emulating this myself with some hacky code.
If someone wants to work on this, please discuss what API we want before starting to implement it.
I'm still not sure what API would be the best. What about
func AppendJustReleasedTouchIDs(touchIDs []ebiten.TouchID) []ebiten.TouchID
func TouchPositionInPreviousTick(id ebiten.TouchID) (int, int, bool)
?
Treating touches as IDs itself seems a not good idea in the first place 🤔