IndirectPointerInputChange
Represents a single pointer input change for an indirect pointer event. The coordinate space does
IndirectPointerInputChange
Class
Common
class IndirectPointerInputChange(
val id: PointerId,
val uptimeMillis: Long,
val position: Offset,
@get:Suppress("GetterSetterNames") val pressed: Boolean,
val pressure: Float,
val previousUptimeMillis: Long,
val previousPosition: Offset,
@get:Suppress("GetterSetterNames") val previousPressed: Boolean,
)
Represents a single pointer input change for an indirect pointer event. The coordinate space does NOT map to the screen space but to the coordinate space of the device sending the data (thus the name indirect pointer change).
Parameters
| id | The unique identifier for the pointer. |
| uptimeMillis | The time at which the event occurred. |
| position | The position of the pointer on the input device (not screen). |
| pressed | Whether the pointer is down or up. |
| pressure | The pressure of the pointer. |
| previousUptimeMillis | The time at which the previous event occurred. |
| previousPosition | The position of the pointer on the input device (not screen) at the previous event. |
| previousPressed | Whether the pointer was down or up at the previous event. |
Properties
Common
var isConsumed: Boolean
Indicates whether the change was consumed or not.
Functions
fun consume()
Consumes the change event, claiming it for the caller.