mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
parent
b53f93c614
commit
699b58c02b
@ -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