ebiten icon indicating copy to clipboard operation
ebiten copied to clipboard

inpututil: add a function to get the last touch position just before releasing

Open hajimehoshi opened this issue 2 years ago • 2 comments

Requested by @midorimici

hajimehoshi avatar Apr 06 '22 13:04 hajimehoshi

Yes! I am currently emulating this myself with some hacky code.

divVerent avatar Apr 08 '22 01:04 divVerent

If someone wants to work on this, please discuss what API we want before starting to implement it.

hajimehoshi avatar Jul 31 '22 12:07 hajimehoshi

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)

?

hajimehoshi avatar Aug 15 '22 16:08 hajimehoshi

Treating touches as IDs itself seems a not good idea in the first place 🤔

hajimehoshi avatar Aug 15 '22 16:08 hajimehoshi