PointerProvider
Defined in: src/modules/input/pointer-provider.ts:187
DOM pointer adapter. Reports button down/up events as raw
InputRawEvents keyed by Pointer.* codes (so they plug into
createInput action maps identically to keyboard codes) and
exposes a continuous position surface on this.state.
Position tracking uses Pointer Events, which unify mouse, touch, and pen inputs — single-touch “just works” without a separate touch provider. Multi-touch and gestures are out of scope in v1.
Buttons that release outside the target still fire up events
because the pointerup listener is attached to the window; this
matches how real games want held-button state to behave
(releasing LMB off-canvas should stop firing).
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new PointerProvider(
options):PointerProvider
Defined in: src/modules/input/pointer-provider.ts:209
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”PointerProvider
Properties
Section titled “Properties”
readonlystate:PointerState
Defined in: src/modules/input/pointer-provider.ts:198
Methods
Section titled “Methods”dispose()
Section titled “dispose()”dispose():
void
Defined in: src/modules/input/pointer-provider.ts:278
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”subscribe()
Section titled “subscribe()”subscribe(
handler): () =>void
Defined in: src/modules/input/pointer-provider.ts:293
Parameters
Section titled “Parameters”handler
Section titled “handler”(raw) => void
Returns
Section titled “Returns”() => void