new Contro(gamepad)
Look at the Input reference pages before reading these docs.
Stores the input status of buttons, triggers, and sticks on
game controllers. Used internally to create controller objects
for the `contros` array (aka `controllers`).
Can also be used to create a mock controller object.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
gamepad |
Gamepad
|
gamepad object or id string for a mock controller |