voxolith

PointerState

A pointer that is down on the surface, as tracked by Input. The object is shared by every listener on the input and updated in place, so copy what you need to keep.

Defined in: engine/src/input/core.ts:30

Properties

PropertyTypeDescriptionDefined in
altKeyboolean-engine/src/input/core.ts:52
buttonnumberButton that went down (0 primary, 1 middle, 2 secondary).engine/src/input/core.ts:46
ctrlKeyboolean-engine/src/input/core.ts:51
idnumberPointerEvent.pointerId.engine/src/input/core.ts:32
lastXnumberPosition at the previous move, for per-event deltas.engine/src/input/core.ts:41
lastYnumber-engine/src/input/core.ts:42
metaKeyboolean-engine/src/input/core.ts:53
shiftKeybooleanModifier keys held when the pointer went down.engine/src/input/core.ts:50
startXnumberPosition when the pointer went down, client pixels.engine/src/input/core.ts:38
startYnumber-engine/src/input/core.ts:39
t0numberTime the pointer went down, in milliseconds on the input's clock (InputOptions.now).engine/src/input/core.ts:48
travelnumberTotal distance moved since down, in pixels. Tap vs drag is decided on this.engine/src/input/core.ts:44
typePointerKind-engine/src/input/core.ts:33
xnumberCurrent position, client pixels.engine/src/input/core.ts:35
ynumber-engine/src/input/core.ts:36

On this page