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 pointerup 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 up = new PointerUp(event)
if (up.key === 0) console.log('primary pointer released', up.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 copied from event.pointerId to id.
The browser pointerType copied from event.pointerType, such as
mouse, pen, or touch.
The browser button value copied from event.button to key.
Local pointer coordinates set from event.offsetX and event.offsetY.
Default: ...