🌈 Create new beautiful Compose Gradients with our new wesite ->
Interface

IndirectPointerEvent

An IndirectPointerEvent represents a pointer input event, where the pointer positions do not correspond to a position on the screen.

Source set: Common
public 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

changes

Source set: Common
public val changes: List<IndirectPointerInputChange>

The list of individual pointer changes in this event.

type

Source set: Common
public val type: IndirectPointerEventType

The reason the IndirectPointerEvent was sent.

primaryDirectionalMotionAxis

Source set: Common
public val primaryDirectionalMotionAxis: IndirectPointerEventPrimaryDirectionalMotionAxis

Main coordinate axis to use for movement.