mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
inpututil: bug fix: compile error
This commit is contained in:
parent
e4d0050452
commit
798b60b67c
@ -141,8 +141,8 @@ func (i *inputState) update() {
|
||||
i.gamepadButtonDurations[id] = make([]int, ebiten.GamepadButtonMax+1)
|
||||
}
|
||||
n := ebiten.GamepadButtonNum(id)
|
||||
if n > ebiten.GamepadButtonMax+1 {
|
||||
n = ebiten.GamepadButtonMax + 1
|
||||
if n > int(ebiten.GamepadButtonMax)+1 {
|
||||
n = int(ebiten.GamepadButtonMax) + 1
|
||||
}
|
||||
for b := ebiten.GamepadButton(0); b < ebiten.GamepadButton(n); b++ {
|
||||
if ebiten.IsGamepadButtonPressed(id, b) {
|
||||
|
Loading…
Reference in New Issue
Block a user