mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +01:00
internal/gamepad: rename ButtonNum -> ButtonCount
This commit is contained in:
parent
b5d755b07a
commit
db1255cdf8
@ -51,4 +51,4 @@ const (
|
|||||||
Button31
|
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
|
// 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).
|
// maximum. Skip such devices as a tentative solution (#1173, #2039).
|
||||||
g.remove(func(gamepad *Gamepad) bool {
|
g.remove(func(gamepad *Gamepad) bool {
|
||||||
return gamepad.ButtonCount() > ButtonNum
|
return gamepad.ButtonCount() > ButtonCount
|
||||||
})
|
})
|
||||||
|
|
||||||
for _, gp := range g.gamepads {
|
for _, gp := range g.gamepads {
|
||||||
|
Loading…
Reference in New Issue
Block a user