The gamepad object is a built-in object that exposes a number of properties reflecting the current state of the gamepad.
gamepad.button
gamepad.leftX
gamepad.leftY
gamepad.pov
gamepad.rightX
gamepad.rightY
gamepad.rX
gamepad.rY
gamepad.x
gamepad.y
gamepad.z
gamepad.buttonA
gamepad.buttonB
gamepad.buttonCenter
gamepad.buttonDown
gamepad.buttonGuide
gamepad.buttonL1
gamepad.buttonL2
gamepad.buttonL3
gamepad.buttonLeft
gamepad.buttonR1
gamepad.buttonR2
gamepad.buttonR3
gamepad.buttonRight
gamepad.buttonSelect
gamepad.buttonStart
gamepad.buttonUp
gamepad.buttonX
gamepad.buttonY
gamepad.change
gamepad.leftThumbstickBack
gamepad.leftThumbstickForward
gamepad.leftThumbstickLeft
gamepad.leftThumbstickRight
gamepad.rightThumbstickBack
gamepad.rightThumbstickForward
gamepad.rightThumbstickLeft
gamepad.rightThumbstickRight
None.
The gamepad object is a built-in object with a number of useful properties that can be referenced in expressions throughout the script.