XRControllerAxis

Family: Platform · One form

What it does

XRControllerAxis takes hand (a string) and axis (an integer), and answers a float.

Syntax

XRControllerAxis(hand string, axis integer) → float

Parameters

NameType
handstring
axisinteger

Every form returns

float

Example · generated

DO  Print(XRControllerAxis("value", 1))  Sync()LOOP

XRControllerAxis 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.

111 commands in Platform