---
title: "IndirectPointerEventPrimaryDirectionalMotionAxis"
description: "The primary axis for motion from an [IndirectPointerEvent]. Indirect input devices such as
touchpads that do not move a cursor on screen may define a primary axis for motion (such as
scrolling). This facilitates the translation of a 2D input gesture into a 1D scroll on the
screen. For example, an input device might be wide horizontally but narrow vertically. In such a
case, it would designate X as its primary axis of motion. This means horizontal scrolling on the
input device would cause a horizontal list to scroll horizontally, and a vertical list to scroll
vertically - even though the direction of motion on the input device is horizontal in both cases."
type: "class"
---

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


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

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


```kotlin
value class IndirectPointerEventPrimaryDirectionalMotionAxis
private constructor(internal val value: Int)
```


The primary axis for motion from an `IndirectPointerEvent`. Indirect input devices such as
touchpads that do not move a cursor on screen may define a primary axis for motion (such as
scrolling). This facilitates the translation of a 2D input gesture into a 1D scroll on the
screen. For example, an input device might be wide horizontally but narrow vertically. In such a
case, it would designate X as its primary axis of motion. This means horizontal scrolling on the
input device would cause a horizontal list to scroll horizontally, and a vertical list to scroll
vertically - even though the direction of motion on the input device is horizontal in both cases.


## Companion Object

#### Properties

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


```kotlin
val None = IndirectPointerEventPrimaryDirectionalMotionAxis(0)
```


No coordinate axes specified for movement.



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


```kotlin
val X = IndirectPointerEventPrimaryDirectionalMotionAxis(1)
```


X coordinate axis specified as the primary movement axis.



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


```kotlin
val Y = IndirectPointerEventPrimaryDirectionalMotionAxis(2)
```


Y coordinate axis specified as the primary movement axis.





