PointerPressInfo
Defined in: types.ts:194
Pointer-down edge retained for the current rendered frame.
Extends
Section titled “Extends”Properties
Section titled “Properties”button
Section titled “button”
readonlybutton:number
Defined in: types.ts:182
The button whose state changed for the event this snapshot was delivered
with: 0=left/primary, 1=middle, 2=right. -1 when not applicable —
onPointerMove, pointercancel-driven up notifications, and query
snapshots from InputManager.getPointers / getPointer.
Use this — not buttons — to filter by button inside an onPointerDown
/ onPointerUp listener: those listeners are notified before the edge
is drained into buttons, so buttons does not yet reflect this event.
Inherited from
Section titled “Inherited from”buttons
Section titled “buttons”
readonlybuttons:ReadonlySet<number>
Defined in: types.ts:169
Currently-held button indices (0=left/primary, 1=middle, 2=right).
Inherited from
Section titled “Inherited from”consumed
Section titled “consumed”
readonlyconsumed:boolean
Defined in: types.ts:198
Whether UI or another pointer listener claimed this press.
generation
Section titled “generation”
readonlygeneration:number
Defined in: types.ts:161
Monotonic identity of this pointer press cycle.
Inherited from
Section titled “Inherited from”
readonlyid:number
Defined in: types.ts:159
Browser-assigned PointerEvent.pointerId, or the synthetic id passed via firePointer*.
Inherited from
Section titled “Inherited from”isDown
Section titled “isDown”
readonlyisDown:boolean
Defined in: types.ts:171
Convenience mirror of buttons.size > 0.
Inherited from
Section titled “Inherited from”isPrimary
Section titled “isPrimary”
readonlyisPrimary:boolean
Defined in: types.ts:167
Whether the browser flagged this as the primary pointer (PointerEvent.isPrimary).
Inherited from
Section titled “Inherited from”screenPos
Section titled “screenPos”
readonlyscreenPos:Vec2
Defined in: types.ts:163
Position in screen-space pixels (already routed through canvasToVirtual if available).
Inherited from
Section titled “Inherited from”
readonlytype:PointerType
Defined in: types.ts:165
Source device class.
Inherited from
Section titled “Inherited from”worldPos
Section titled “worldPos”
readonlyworldPos:Vec2
Defined in: types.ts:196
Position converted through the camera when the press was applied, or screenPos when unset.