getGamepads method
The Navigator.getGamepads()
method returns an array of
Gamepad objects, one for each gamepad connected to the device.
Elements in the array may be null
if a gamepad disconnects during a
session, so that the remaining gamepads retain the same index.
Implementation
external JSArray<Gamepad?> getGamepads();