menu

TouchContact

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

Touch contact snapshot.

language/library/src/input/binding/touch.ds:18:37
1export struct TouchContact {2    contactId: uint32;3    phase: TouchPhase;4    x: float64;5    y: float64;6    pressure: float64;7    radiusX: float64;8    radiusY: float64;9    tiltX: float64;10    tiltY: float64;11}

Members

contactId: uint32

Host contact identifier.

phase: TouchPhase

Contact phase.

x: float64

Contact x coordinate in host-native units.

y: float64

Contact y coordinate in host-native units.

pressure: float64

Contact pressure in the normalized range [0, 1] when available.

radiusX: float64

Contact major radius in host-native units when available.

radiusY: float64

Contact minor radius in host-native units when available.

tiltX: float64

Contact tilt around the x axis in degrees when available.

tiltY: float64

Contact tilt around the y axis in degrees when available.