@modoki/engine / index / beginSample
Function: beginSample()
beginSample(
frame):void
Zero the per-sample state (axes + held) before re-sampling all sources into the frame. pressed/released are left for computeEdges to recompute; lastDevice is sticky (only a source with activity overwrites it). pointer is left as-is — the single pointer source is authoritative and overwrites it in sample, and its pressed/released down-edge is derived in inputSystem (see computePointerEdge).
Parameters
frame
Returns
void