mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-11-02 12:34:19 +08:00
@@ -182,11 +182,8 @@ func jump() bool {
|
||||
if inpututil.IsMouseButtonJustPressed(ebiten.MouseButtonLeft) {
|
||||
return true
|
||||
}
|
||||
if len(ebiten.Touches()) > 0 {
|
||||
id := ebiten.Touches()[0].ID()
|
||||
if inpututil.IsJustTouched(id) {
|
||||
return true
|
||||
}
|
||||
if len(inpututil.JustPressedTouches()) > 0 {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user