mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 11:48:55 +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 {
|
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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user