Apply a flat snapshot of action states (true/false). Unlisted actions are unchanged.
Release every action and cancel any in-flight pulses.
Check if provider detected a one-shot gesture for this action (e.g. swipe)
Clean up all listeners
Check if an action is currently down via this provider
Hold an action down for the next frames polls (default 1).
Set an action's held state. Pass true to press, false to release.
Poll the provider and update action states
Programmatic InputProvider — actions are driven by direct method calls instead of real keyboard / touch / gamepad events.
Used by the multi-instance test harness so scenarios can simulate inputs without a DOM. Add to any
InputManagerviainputManager.addProvider(scripted)— the whole pipeline (action map,InputBuffer, combo detector,BaseScene.actions) works exactly as it does for real input.Two modes:
set(action, true|false)— sticky: stays in that state until changedpulse(action, frames)— held down for the next N polled framesapply(state)— bulk set from a{ action: boolean }mapclear()— release everythingExample