# TouchState

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

Touch state snapshot.

```ds title="TouchState"
export struct TouchState {
    timestampNs: uint64;
    sequence: uint64;
    deviceId: string;
    contacts: TouchContact[];
}
```

[language/library/src/input/binding/touch.ds:40:49](https://github.com/destack-sh/destack/blob/main/language/library/src/input/binding/touch.ds#L40-L49)

## 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.
