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
4749fc4193
commit
e583d28a82
@ -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