mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
internal/uidriver: Optimization
This commit is contained in:
parent
514904392c
commit
40e662d672
@ -293,7 +293,9 @@ func (i *Input) updateGamepads() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
i.gamepads = map[driver.GamepadID]gamepad{}
|
for k := range i.gamepads {
|
||||||
|
delete(i.gamepads, k)
|
||||||
|
}
|
||||||
|
|
||||||
gamepads := nav.Call("getGamepads")
|
gamepads := nav.Call("getGamepads")
|
||||||
l := gamepads.Length()
|
l := gamepads.Length()
|
||||||
|
Loading…
Reference in New Issue
Block a user