mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
parent
79f031ae9a
commit
f19e9c75b1
@ -205,7 +205,7 @@ func (g *Game) isKeyJustPressed() bool {
|
||||
if inpututil.IsMouseButtonJustPressed(ebiten.MouseButtonLeft) {
|
||||
return true
|
||||
}
|
||||
g.touchIDs = inpututil.AppendJustPressedTouchIDs(g.touchIDs)
|
||||
g.touchIDs = inpututil.AppendJustPressedTouchIDs(g.touchIDs[:0])
|
||||
if len(g.touchIDs) > 0 {
|
||||
return true
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user