---
title: "IndirectPointerEvent"
description: "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]."
type: "interface"
---

<div class='type'>Interface</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>



```kotlin
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

<div class='sourceset sourceset-common'>Common</div>


```kotlin
val changes: List<IndirectPointerInputChange>
```


The list of individual pointer changes in this event.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val type: IndirectPointerEventType
```


The reason the `IndirectPointerEvent` was sent.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val primaryDirectionalMotionAxis: IndirectPointerEventPrimaryDirectionalMotionAxis
```


Main coordinate axis to use for movement.




