internal/uidriver/js: bug fix: compile error

This commit is contained in:
Hajime Hoshi 2022-02-02 02:27:08 +09:00
parent f3f8f6177c
commit 85bebece04

View File

@ -111,7 +111,7 @@ func (i *Input) GamepadAxisNum(id driver.GamepadID) int {
if g == nil { if g == nil {
return 0 return 0
} }
return g.AxisNum() return g.AxisCount()
} }
func (i *Input) GamepadAxisValue(id driver.GamepadID, axis int) float64 { 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 { if g == nil {
return 0 return 0
} }
return g.ButtonNum() return g.ButtonCount()
} }
func (i *Input) IsGamepadButtonPressed(id driver.GamepadID, button driver.GamepadButton) bool { func (i *Input) IsGamepadButtonPressed(id driver.GamepadID, button driver.GamepadButton) bool {