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

idThe unique identifier for the pointer.
uptimeMillisThe time at which the event occurred.
positionThe position of the pointer on the input device (not screen).
pressedWhether the pointer is down or up.
pressureThe pressure of the pointer.
previousUptimeMillisThe time at which the previous event occurred.
previousPositionThe position of the pointer on the input device (not screen) at the previous event.
previousPressedWhether 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.