examples/vibrate: refactoring

This commit is contained in:
Hajime Hoshi 2022-04-12 00:11:11 +09:00
parent 55447679ee
commit 8f524b5c23

View File

@ -38,7 +38,6 @@ type Game struct {
}
func (g *Game) Update() error {
g.touchIDs = g.touchIDs[:0]
g.touchIDs = inpututil.AppendJustPressedTouchIDs(g.touchIDs[:0])
if len(g.touchIDs) > 0 {
g.touchCounter++