What it does
XRControllerAxis takes hand (a string) and axis (an integer), and answers a float.
Syntax
XRControllerAxis(hand string, axis integer) → floatParameters
| Name | Type |
|---|---|
| hand | string |
| axis | integer |
Every form returns
float
Example · generated
DO Print(XRControllerAxis("value", 1)) Sync()LOOPXRControllerAxis is called and its answer is printed every frame. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.