textmode.js / Textmodifier / gamepads
Property: gamepads
ts
readonly gamepads: readonly TextmodeGamepadSnapshot[];Currently connected gamepads as a compact readonly list.
The returned array is sorted by browser Gamepad.index, but unlike the browser API it does not contain sparse null holes for disconnected slots. Use Textmodifier.gamepad when you need to resolve a specific browser slot index.