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