gamepads property

List<Gamepad> gamepads
getter/setter pair

A list of gamepads that are currently connected.

Note that the index in this list does not correspond to Gamepad.controllerIndex. The latter is the unique integer ID assigned to the physical gamepad by the operating system, while the former is a number 1-3 representing which operator is holding that gamepad.

Implementation

List<Gamepad> gamepads = [];