Contro

Contro

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

Extends

Classes

Contro

Members

l1

Alias for `l` (left button). `l1` is what the button is called on PlayStation controllers.
Source:

l2

Alias for `leftTrigger` (analog left trigger). `l2` is what the trigger is called on PlayStation controllers.
Source:

l3

Alias for `lsb` (left stick button). `l3` is what the trigger is called on PlayStation controllers.
Source:

lb

Alias for `l` (left button). `lb` is what the button is called on Xbox controllers.
Source:

leftStickButton

Verbose alias for `lsb`.
Source:

ls

Alias for `leftStick`.
Source:

r1

Alias for `r` (right button). `r1` is what the button is called on PlayStation controllers.
Source:

r2

Alias for `rightTrigger` (analog right trigger). `r2` is what the trigger is called on PlayStation controllers.
Source:

r3

Alias for `rsb` (right stick button). `r3` is what the trigger is called on PlayStation controllers.
Source:

rb

Alias for `r` (right button). `rb` is what the button is called on Xbox controllers.
Source:

rightStickButton

Verbose alias for `rsb`.
Source:

rs

Alias for `rightStick`.
Source:

zl

Alias for `lt` (digital left trigger). `zl` is what the button is called on Nintendo controllers.
Source:

zr

Alias for `rt` (digital right trigger). `zr` is what the button is called on Nintendo controllers.
Source: