constructor(event: PointerEvent)
View sourceMaps pointerId to id, pointerType to pointerType, and button to
key. The position is set from the event’s offsetX and offsetY.
Class
Captures the pointer data emitted by a browser pointerdown event.
The value preserves the pointer identity and device type, maps the browser
button code to key, and stores the event’s local offset as a reusable
Vector2 position.
const down = new PointerDown(event)
if (down.key === 0) console.log('primary pointer pressed', down.position)constructor(event: PointerEvent)Maps pointerId to id, pointerType to pointerType, and button to
key. The position is set from the event’s offsetX and offsetY.
The browser pointerId identifying the active pointer.
The browser pointerType, such as mouse, pen, or touch.
The browser button value for the pressed button. This field is named
key to match the window input event API.
Local pointer coordinates copied from offsetX and offsetY.
Default: ...