The 2D layer · interface

PointerState

Explained in Sprites and tilemaps.

interface PointerState
import type { PointerState } from '@driftengine/ui2d';

Properties

NameTypeDescription
capturedUiNode | nullThe node holding the pointer, or null.
dragSourceUiNode | nullWhere a drag began, or null when none is in progress.
dragTargetUiNode | nullThe last node the drag was over, excluding the source itself.
dragPayloadstringWhat the drag is carrying. Opaque to this module.