From b278e5521fc37e3dd9bd1d813aee04d855a36811 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 3 Mar 2023 21:17:47 +0900 Subject: [PATCH] internal/gamepad: rename variables --- internal/gamepad/gamepad.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/gamepad/gamepad.go b/internal/gamepad/gamepad.go index ea098b162..4cb96940a 100644 --- a/internal/gamepad/gamepad.go +++ b/internal/gamepad/gamepad.go @@ -284,14 +284,14 @@ func (g *Gamepad) IsStandardLayoutAvailable() bool { } // IsStandardAxisAvailable is concurrent safe. -func (g *Gamepad) IsStandardAxisAvailable(button gamepaddb.StandardAxis) bool { +func (g *Gamepad) IsStandardAxisAvailable(axis gamepaddb.StandardAxis) bool { g.m.Lock() defer g.m.Unlock() if gamepaddb.HasStandardLayoutMapping(g.sdlID) { - return gamepaddb.HasStandardAxis(g.sdlID, button) + return gamepaddb.HasStandardAxis(g.sdlID, axis) } - return g.native.isStandardAxisAvailableInOwnMapping(button) + return g.native.isStandardAxisAvailableInOwnMapping(axis) } // IsStandardButtonAvailable is concurrent safe.