mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
internal/uidriver/js: bug fix: compile error
This commit is contained in:
parent
f3f8f6177c
commit
85bebece04
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user