What it does
input.getRawJoystickX reads RawJoystickX on an input object. It takes idx.
Signature
input.getRawJoystickX(idx)Arguments
idx
Example · generated
function update(dt) { const rawJoystickX = input.getRawJoystickX(0);}input.getRawJoystickX 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.