From ab14c9ba9cf7665f7f45caf849828cebc27b3c4a Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Tue, 12 Apr 2022 00:10:32 +0900 Subject: [PATCH] Revert "examples/vibrate: bug fix: touches didn't work correctly" This reverts commit c790d8aa7a8c51613e79276dfa3747b7c3858114. Reason: This was not needed --- examples/vibrate/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/vibrate/main.go b/examples/vibrate/main.go index 4f6605ebb..c4e627c9d 100644 --- a/examples/vibrate/main.go +++ b/examples/vibrate/main.go @@ -39,7 +39,7 @@ type Game struct { func (g *Game) Update() error { g.touchIDs = g.touchIDs[:0] - g.touchIDs = inpututil.AppendJustPressedTouchIDs(g.touchIDs[:0]) + g.touchIDs = inpututil.AppendJustPressedTouchIDs(g.touchIDs) if len(g.touchIDs) > 0 { g.touchCounter++ op := &ebiten.VibrateOptions{