What it does
input.getRawJoystickY reads RawJoystickY on an input object. It takes idx.
Signature
input.getRawJoystickY(idx)Arguments
idx
Example · generated
function update(dt) { const rawJoystickY = input.getRawJoystickY(0);}input.getRawJoystickY is called with values of the shape its signature asks for. The code sits in update(dt), which the engine calls every frame: dt is the time since the last one, in seconds.