mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +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