From db1255cdf8a93d4a0b867f5b2f568e584cc719ec Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 7 Sep 2022 15:40:52 +0900 Subject: [PATCH] internal/gamepad: rename ButtonNum -> ButtonCount --- internal/gamepad/button.go | 2 +- internal/gamepad/gamepad.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/gamepad/button.go b/internal/gamepad/button.go index 96a3aa7ce..56b0c03df 100644 --- a/internal/gamepad/button.go +++ b/internal/gamepad/button.go @@ -51,4 +51,4 @@ const ( Button31 ) -const ButtonNum = 32 +const ButtonCount = 32 diff --git a/internal/gamepad/gamepad.go b/internal/gamepad/gamepad.go index fb1f15125..00dd019fb 100644 --- a/internal/gamepad/gamepad.go +++ b/internal/gamepad/gamepad.go @@ -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 {