Skip to content

PointerState

Defined in: src/modules/input/pointer-provider.ts:46

Live, read-only view of the pointer’s continuous state. Consumers read this every tick (or every render frame) to drive aim vectors, cursor rendering, or hover-affected UI. Writes are owned by the provider; the type is readonly by contract.

readonly clientX: number

Defined in: src/modules/input/pointer-provider.ts:48

Raw viewport-space X coordinate (PointerEvent.clientX).


readonly clientY: number

Defined in: src/modules/input/pointer-provider.ts:50

Raw viewport-space Y coordinate (PointerEvent.clientY).


readonly over: boolean

Defined in: src/modules/input/pointer-provider.ts:52

True iff the pointer is currently over the target.


readonly x: number

Defined in: src/modules/input/pointer-provider.ts:54

X coordinate in target-local space (see projector doc).


readonly y: number

Defined in: src/modules/input/pointer-provider.ts:56

Y coordinate in target-local space (see projector doc).