mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-09-19 21:02:18 +02:00
examples/vibrate: refactoring
This commit is contained in:
parent
55447679ee
commit
8f524b5c23
@ -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++
|
||||
|
Loading…
Reference in New Issue
Block a user