menu

InputEventPointerButton

import { InputEventPointerButton } from "destack:input/binding";

Input pointer button event.

language/library/src/input/binding/event.ds:212:245
1export struct InputEventPointerButton {2    kind: "pointerButton";3    header: InputEventHeader;4    action: InputEventAction;5    pointerId: uint64;6    pointerKind: PointerKind;7    isPrimary: boolean;8    button: int16;9    buttons: uint32;10    hostCode: uint32;11    hostValue: int64;12    x: float64;13    y: float64;14    space: CoordinateSpace;15    modifiers: ModifierState;16    contact: PointerContact;17    pen: PenState;18}

Members

kind: "pointerButton"

Event discriminator.

header: InputEventHeader

Shared event header.

action: InputEventAction

Event action.

pointerId: uint64

Stable pointer identifier.

pointerKind: PointerKind

Pointer kind.

isPrimary: boolean

Whether this is the primary pointer for its kind.

button: int16

Canonical button index when available.

buttons: uint32

Canonical pressed-button bitset.

hostCode: uint32

Host-native button code.

hostValue: int64

Host-native button value.

x: float64

Pointer x coordinate.

y: float64

Pointer y coordinate.

space: CoordinateSpace

Coordinate space.

modifiers: ModifierState

Keyboard modifier and lock state.

contact: PointerContact

Contact geometry when available.

pen: PenState

Pen state when available.