From 85bebece04a75435d21fb0e068ba2e3366bec12d Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 2 Feb 2022 02:27:08 +0900 Subject: [PATCH] internal/uidriver/js: bug fix: compile error --- internal/uidriver/js/input_js.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/uidriver/js/input_js.go b/internal/uidriver/js/input_js.go index c47e3b9b7..a59f36817 100644 --- a/internal/uidriver/js/input_js.go +++ b/internal/uidriver/js/input_js.go @@ -111,7 +111,7 @@ func (i *Input) GamepadAxisNum(id driver.GamepadID) int { if g == nil { return 0 } - return g.AxisNum() + return g.AxisCount() } func (i *Input) GamepadAxisValue(id driver.GamepadID, axis int) float64 { @@ -127,7 +127,7 @@ func (i *Input) GamepadButtonNum(id driver.GamepadID) int { if g == nil { return 0 } - return g.ButtonNum() + return g.ButtonCount() } func (i *Input) IsGamepadButtonPressed(id driver.GamepadID, button driver.GamepadButton) bool {