The joystick element is a built-in element that exposes a number of properties reflecting the current state of the joystick.
<joystick>
This element has no attributes
</joystick>
joystick.button
joystick.buttona
joystick.buttonb
joystick.buttoncenter
joystick.buttondown
joystick.buttonguide
joystick.buttonl1
joystick.buttonl2
joystick.buttonl3
joystick.buttonleft
joystick.buttonr1
joystick.buttonr2
joystick.buttonr3
joystick.buttonright
joystick.buttonselect
joystick.buttonstart
joystick.buttonup
joystick.buttonx
joystick.buttony
joystick.leftx
joystick.lefty
joystick.pov
joystick.rightx
joystick.righty
joystick.rx
joystick.ry
joystick.rz
joystick.slider
joystick.x
joystick.y
joystick.z
None.
The joystick element is a built-in object and can not be explicitly declared in a script. It exposes a number of useful properties, however, that can be referenced in expressions throughout the script.