struct ContactState
source · line 15public
public struct ContactState(val id: ContactId, val kind: ContactKind, val pointer: PointerState, val pressure: Double? = None)
Pressure is present only when the device supplies a normalized value.
field pressure
source · line 19public
val pressure: Double? = None
constructor constructor
source · line 15public
constructor(val id: ContactId, val kind: ContactKind, val pointer: PointerState, val pressure: Double? = None)
parameter id
source · line 16public
val id: ContactId
parameter kind
source · line 17public
val kind: ContactKind
parameter pointer
source · line 18public
val pointer: PointerState
parameter pressure
source · line 19public
val pressure: Double? = None
field kind
source · line 17public
val kind: ContactKind
field pointer
source · line 18public
val pointer: PointerState
field id
source · line 16public
val id: ContactId
function equals
source · line 15publiccompiler-derived
operator fun equals(other: ContactState): Boolean
This derived operation is available when each field or payload type supports same-type equality. Required types: ContactId, ContactKind, PointerState, Option<Double>.