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