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