mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 12:08:58 +01:00
parent
b53f93c614
commit
699b58c02b
@ -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