mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
internal/gamepad: rename ButtonNum -> ButtonCount
This commit is contained in:
parent
b5d755b07a
commit
db1255cdf8
@ -51,4 +51,4 @@ const (
|
||||
Button31
|
||||
)
|
||||
|
||||
const ButtonNum = 32
|
||||
const ButtonCount = 32
|
||||
|
@ -102,7 +102,7 @@ func (g *gamepads) update() error {
|
||||
// recognized as gamepads by OSes. In this case, the number of the 'buttons' can exceeds the
|
||||
// maximum. Skip such devices as a tentative solution (#1173, #2039).
|
||||
g.remove(func(gamepad *Gamepad) bool {
|
||||
return gamepad.ButtonCount() > ButtonNum
|
||||
return gamepad.ButtonCount() > ButtonCount
|
||||
})
|
||||
|
||||
for _, gp := range g.gamepads {
|
||||
|
Loading…
Reference in New Issue
Block a user