constructor(event: PointerEvent)
View sourceCopies pointerId to id, preserves pointerType, and maps the event’s
offsetX and offsetY values to position.x and position.y.
Class
Captures the pointer data emitted by a browser pointerenter event.
The value preserves the pointer identity and device type and stores the
event’s local offset as a reusable Vector2 position.
const enter = new PointerEnter(event)
console.log(enter.id, enter.pointerType, enter.position)constructor(event: PointerEvent)Copies pointerId to id, preserves pointerType, and maps the event’s
offsetX and offsetY values to position.x and position.y.
The browser pointerId identifying the pointer.
The browser pointerType, such as mouse, pen, or touch.
Local pointer coordinates copied from offsetX and offsetY.
Default: ...