IndirectPointerEvent
An IndirectPointerEvent represents a pointer input event, where the pointer positions do not
IndirectPointerEvent
sealed interface IndirectPointerEvent
An IndirectPointerEvent represents a pointer input event, where the pointer positions do not correspond to a position on the screen. Instead, the position of the pointer corresponds to the position on the input device, such as a touchpad.
Since IndirectPointerEvents do not have a position on the screen, they cannot be dispatched through hit-testing and instead they are dispatched through the focus tree, similar to key input. Only the focused component and any of its parents will receive an IndirectPointerEvent.
This event differs from a PointerEvent as it does not necessitate an existence of a pointer. If
an event were to have an associated pointer, they will be routed to through PointerEvent.
Properties
val changes: List<IndirectPointerInputChange>
The list of individual pointer changes in this event.
val type: IndirectPointerEventType
The reason the IndirectPointerEvent was sent.
val primaryDirectionalMotionAxis: IndirectPointerEventPrimaryDirectionalMotionAxis
Main coordinate axis to use for movement.