menu

TouchState

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

Touch state snapshot.

language/library/src/input/binding/touch.ds:40:49
1export struct TouchState {2    timestampNs: uint64;3    sequence: uint64;4    deviceId: string;5    contacts: TouchContact[];6}

Members

timestampNs: uint64

Monotonic update timestamp in nanoseconds.

sequence: uint64

Monotonic sequence number generated by the host stream.

deviceId: string

Stable source device identifier.

contacts: TouchContact[]

Active contacts for this snapshot.