menu
TouchContact
import { TouchContact } from "destack:input/binding";
Touch contact snapshot.
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: uint32Host contact identifier.
phase: TouchPhaseContact phase.
x: float64Contact x coordinate in host-native units.
y: float64Contact y coordinate in host-native units.
pressure: float64Contact pressure in the normalized range
[0, 1]when available.radiusX: float64Contact major radius in host-native units when available.
radiusY: float64Contact minor radius in host-native units when available.
tiltX: float64Contact tilt around the x axis in degrees when available.
tiltY: float64Contact tilt around the y axis in degrees when available.