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