# MotionEventCompat

# MotionEventCompat

Artifact:[androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core)  
[View Source](https://cs.android.com/search?q=file:androidx/core/view/MotionEventCompat.java+class:androidx.core.view.MotionEventCompat)  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/core/view/MotionEventCompat "View this page in Java")

<br />

```
class MotionEventCompat
```

<br />

*** ** * ** ***

Helper for accessing features in[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html).

## Summary

|                                    ### Constants                                    |
|-------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [ACTION_HOVER_ENTER](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#ACTION_HOVER_ENTER())` = 9` **This property is deprecated.** Use[ACTION_HOVER_ENTER](https://developer.android.com/reference/android/view/MotionEvent.html#ACTION_HOVER_ENTER())directly. <br />                                 |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [ACTION_HOVER_EXIT](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#ACTION_HOVER_EXIT())` = 10` **This property is deprecated.** Use[ACTION_HOVER_EXIT](https://developer.android.com/reference/android/view/MotionEvent.html#ACTION_HOVER_EXIT())directly. <br />                                    |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [ACTION_HOVER_MOVE](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#ACTION_HOVER_MOVE())` = 7` **This property is deprecated.** Use[ACTION_HOVER_MOVE](https://developer.android.com/reference/android/view/MotionEvent.html#ACTION_HOVER_MOVE())directly. <br />                                     |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [ACTION_MASK](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#ACTION_MASK())` = 255` **This property is deprecated.** Use[ACTION_MASK](https://developer.android.com/reference/android/view/MotionEvent.html#ACTION_MASK())directly. <br />                                                           |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [ACTION_POINTER_DOWN](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#ACTION_POINTER_DOWN())` = 5` **This property is deprecated.** Use[ACTION_POINTER_DOWN](https://developer.android.com/reference/android/view/MotionEvent.html#ACTION_POINTER_DOWN())directly. <br />                             |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [ACTION_POINTER_INDEX_MASK](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#ACTION_POINTER_INDEX_MASK())` = 65280` **This property is deprecated.** Use[ACTION_POINTER_INDEX_MASK](https://developer.android.com/reference/android/view/MotionEvent.html#ACTION_POINTER_INDEX_MASK())directly. <br /> |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [ACTION_POINTER_INDEX_SHIFT](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#ACTION_POINTER_INDEX_SHIFT())` = 8` **This property is deprecated.** Use[ACTION_POINTER_INDEX_SHIFT](https://developer.android.com/reference/android/view/MotionEvent.html#ACTION_POINTER_INDEX_SHIFT())directly. <br /> |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [ACTION_POINTER_UP](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#ACTION_POINTER_UP())` = 6` **This property is deprecated.** Use[ACTION_POINTER_UP](https://developer.android.com/reference/android/view/MotionEvent.html#ACTION_POINTER_UP())directly. <br />                                     |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [ACTION_SCROLL](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#ACTION_SCROLL())` = 8` **This property is deprecated.** Use[ACTION_SCROLL](https://developer.android.com/reference/android/view/MotionEvent.html#ACTION_SCROLL())directly. <br />                                                     |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_BRAKE](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_BRAKE())` = 23` **This property is deprecated.** Use[AXIS_BRAKE](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_BRAKE())directly. <br />                                                                |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_DISTANCE](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_DISTANCE())` = 24` **This property is deprecated.** Use[AXIS_DISTANCE](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_DISTANCE())directly. <br />                                                    |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_GAS](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_GAS())` = 22` **This property is deprecated.** Use[AXIS_GAS](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GAS())directly. <br />                                                                        |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_GENERIC_1](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_GENERIC_1())` = 32` **This property is deprecated.** Use[AXIS_GENERIC_1](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_1())directly. <br />                                                |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_GENERIC_10](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_GENERIC_10())` = 41` **This property is deprecated.** Use[AXIS_GENERIC_10](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_10())directly. <br />                                            |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_GENERIC_11](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_GENERIC_11())` = 42` **This property is deprecated.** Use[AXIS_GENERIC_11](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_11())directly. <br />                                            |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_GENERIC_12](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_GENERIC_12())` = 43` **This property is deprecated.** Use[AXIS_GENERIC_12](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_12())directly. <br />                                            |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_GENERIC_13](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_GENERIC_13())` = 44` **This property is deprecated.** Use[AXIS_GENERIC_13](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_13())directly. <br />                                            |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_GENERIC_14](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_GENERIC_14())` = 45` **This property is deprecated.** Use[AXIS_GENERIC_14](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_14())directly. <br />                                            |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_GENERIC_15](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_GENERIC_15())` = 46` **This property is deprecated.** Use[AXIS_GENERIC_15](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_15())directly. <br />                                            |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_GENERIC_16](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_GENERIC_16())` = 47` **This property is deprecated.** Use[AXIS_GENERIC_16](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_16())directly. <br />                                            |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_GENERIC_2](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_GENERIC_2())` = 33` **This property is deprecated.** Use[AXIS_GENERIC_2](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_2())directly. <br />                                                |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_GENERIC_3](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_GENERIC_3())` = 34` **This property is deprecated.** Use[AXIS_GENERIC_3](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_3())directly. <br />                                                |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_GENERIC_4](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_GENERIC_4())` = 35` **This property is deprecated.** Use[AXIS_GENERIC_4](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_4())directly. <br />                                                |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_GENERIC_5](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_GENERIC_5())` = 36` **This property is deprecated.** Use[AXIS_GENERIC_5](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_5())directly. <br />                                                |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_GENERIC_6](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_GENERIC_6())` = 37` **This property is deprecated.** Use[AXIS_GENERIC_6](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_6())directly. <br />                                                |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_GENERIC_7](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_GENERIC_7())` = 38` **This property is deprecated.** Use[AXIS_GENERIC_7](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_7())directly. <br />                                                |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_GENERIC_8](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_GENERIC_8())` = 39` **This property is deprecated.** Use[AXIS_GENERIC_8](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_8())directly. <br />                                                |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_GENERIC_9](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_GENERIC_9())` = 40` **This property is deprecated.** Use[AXIS_GENERIC_9](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_9())directly. <br />                                                |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_HAT_X](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_HAT_X())` = 15` **This property is deprecated.** Use[AXIS_HAT_X](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_HAT_X())directly. <br />                                                                |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_HAT_Y](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_HAT_Y())` = 16` **This property is deprecated.** Use[AXIS_HAT_Y](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_HAT_Y())directly. <br />                                                                |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_HSCROLL](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_HSCROLL())` = 10` **This property is deprecated.** Use[AXIS_HSCROLL](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_HSCROLL())directly. <br />                                                        |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_LTRIGGER](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_LTRIGGER())` = 17` **This property is deprecated.** Use[AXIS_LTRIGGER](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_LTRIGGER())directly. <br />                                                    |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_ORIENTATION](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_ORIENTATION())` = 8` **This property is deprecated.** Use[AXIS_ORIENTATION](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_ORIENTATION())directly. <br />                                         |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_PRESSURE](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_PRESSURE())` = 2` **This property is deprecated.** Use[AXIS_PRESSURE](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_PRESSURE())directly. <br />                                                     |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_RELATIVE_X](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_RELATIVE_X())` = 27` Synonym for[AXIS_RELATIVE_X](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_RELATIVE_X()).                                                                                    |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_RELATIVE_Y](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_RELATIVE_Y())` = 28` Synonym for[AXIS_RELATIVE_Y](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_RELATIVE_Y()).                                                                                    |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_RTRIGGER](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_RTRIGGER())` = 18` **This property is deprecated.** Use[AXIS_RTRIGGER](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_RTRIGGER())directly. <br />                                                    |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_RUDDER](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_RUDDER())` = 20` **This property is deprecated.** Use[AXIS_RUDDER](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_RUDDER())directly. <br />                                                            |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_RX](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_RX())` = 12` **This property is deprecated.** Use[AXIS_RX](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_RX())directly. <br />                                                                            |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_RY](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_RY())` = 13` **This property is deprecated.** Use[AXIS_RY](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_RY())directly. <br />                                                                            |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_RZ](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_RZ())` = 14` **This property is deprecated.** Use[AXIS_RZ](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_RZ())directly. <br />                                                                            |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_SCROLL](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_SCROLL())` = 26` Synonym for[AXIS_SCROLL](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_SCROLL()).                                                                                                    |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_SIZE](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_SIZE())` = 3` **This property is deprecated.** Use[AXIS_SIZE](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_SIZE())directly. <br />                                                                     |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_THROTTLE](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_THROTTLE())` = 19` **This property is deprecated.** Use[AXIS_THROTTLE](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_THROTTLE())directly. <br />                                                    |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_TILT](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_TILT())` = 25` **This property is deprecated.** Use[AXIS_TILT](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_TILT())directly. <br />                                                                    |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_TOOL_MAJOR](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_TOOL_MAJOR())` = 6` **This property is deprecated.** Use[AXIS_TOOL_MAJOR](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_TOOL_MAJOR())directly. <br />                                             |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_TOOL_MINOR](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_TOOL_MINOR())` = 7` **This property is deprecated.** Use[AXIS_TOOL_MINOR](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_TOOL_MINOR())directly. <br />                                             |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_TOUCH_MAJOR](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_TOUCH_MAJOR())` = 4` **This property is deprecated.** Use[AXIS_TOUCH_MAJOR](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_TOUCH_MAJOR())directly. <br />                                         |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_TOUCH_MINOR](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_TOUCH_MINOR())` = 5` **This property is deprecated.** Use[AXIS_TOUCH_MINOR](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_TOUCH_MINOR())directly. <br />                                         |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_VSCROLL](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_VSCROLL())` = 9` **This property is deprecated.** Use[AXIS_VSCROLL](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_VSCROLL())directly. <br />                                                         |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_WHEEL](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_WHEEL())` = 21` **This property is deprecated.** Use[AXIS_WHEEL](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_WHEEL())directly. <br />                                                                |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_X](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_X())` = 0` **This property is deprecated.** Use[AXIS_X](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_X())directly. <br />                                                                                 |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_Y](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_Y())` = 1` **This property is deprecated.** Use[AXIS_Y](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_Y())directly. <br />                                                                                 |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [AXIS_Z](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_Z())` = 11` **This property is deprecated.** Use[AXIS_Z](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_Z())directly. <br />                                                                                |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [BUTTON_PRIMARY](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#BUTTON_PRIMARY())` = 1` **This property is deprecated.** Use[BUTTON_PRIMARY](https://developer.android.com/reference/android/view/MotionEvent.html#BUTTON_PRIMARY())directly. <br />                                                 |

|                                       ### Public functions                                        |
|---------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `java-static `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)         | `@`[ReplaceWith](https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith)`(expression = "event.findPointerIndex(pointerId)")` ~~[findPointerIndex](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#findPointerIndex(android.view.MotionEvent,int))~~`(event: `[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)`!, pointerId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` **This function is deprecated.** Call[findPointerIndex](https://developer.android.com/reference/android/view/MotionEvent.html#findPointerIndex(int))directly. <br />                                                                                       |
| `java-static `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)         | `@`[ReplaceWith](https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith)`(expression = "event.getActionIndex()")` ~~[getActionIndex](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#getActionIndex(android.view.MotionEvent))~~`(event: `[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)`!)` **This function is deprecated.** Call[getActionIndex](https://developer.android.com/reference/android/view/MotionEvent.html#getActionIndex())directly. <br />                                                                                                                                                                                                           |
| `java-static `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)         | `@`[ReplaceWith](https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith)`(expression = "event.getActionMasked()")` ~~[getActionMasked](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#getActionMasked(android.view.MotionEvent))~~`(event: `[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)`!)` **This function is deprecated.** Call[getAction](https://developer.android.com/reference/android/view/MotionEvent.html#getAction())directly. <br />                                                                                                                                                                                                                  |
| `java-static `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)     | `@`[ReplaceWith](https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith)`(expression = "event.getAxisValue(axis)")` ~~[getAxisValue](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#getAxisValue(android.view.MotionEvent,int))~~`(event: `[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)`!, axis: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` **This function is deprecated.** Call[getAxisValue](https://developer.android.com/reference/android/view/MotionEvent.html#getAxisValue(int))directly. <br />                                                                                                                     |
| `java-static `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)     | `@`[ReplaceWith](https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith)`(expression = "event.getAxisValue(axis, pointerIndex)")` ~~[getAxisValue](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#getAxisValue(android.view.MotionEvent,int,int))~~`(event: `[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)`!, axis: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, pointerIndex: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` **This function is deprecated.** Call[getAxisValue](https://developer.android.com/reference/android/view/MotionEvent.html#getAxisValue(int, int))directly. <br /> |
| `java-static `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)         | `@`[ReplaceWith](https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith)`(expression = "event.getButtonState()")` ~~[getButtonState](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#getButtonState(android.view.MotionEvent))~~`(event: `[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)`!)` **This function is deprecated.** Call[getButtonState](https://developer.android.com/reference/android/view/MotionEvent.html#getButtonState())directly. <br />                                                                                                                                                                                                           |
| `java-static `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)         | `@`[ReplaceWith](https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith)`(expression = "event.getPointerCount()")` ~~[getPointerCount](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#getPointerCount(android.view.MotionEvent))~~`(event: `[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)`!)` **This function is deprecated.** Call[getPointerCount](https://developer.android.com/reference/android/view/MotionEvent.html#getPointerCount())directly. <br />                                                                                                                                                                                                      |
| `java-static `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)         | `@`[ReplaceWith](https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith)`(expression = "event.getPointerId(pointerIndex)")` ~~[getPointerId](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#getPointerId(android.view.MotionEvent,int))~~`(event: `[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)`!, pointerIndex: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` **This function is deprecated.** Call[getPointerId](https://developer.android.com/reference/android/view/MotionEvent.html#getPointerId(int))directly. <br />                                                                                                     |
| `java-static `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)         | `@`[ReplaceWith](https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith)`(expression = "event.getSource()")` ~~[getSource](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#getSource(android.view.MotionEvent))~~`(event: `[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)`!)` **This function is deprecated.** Call[getSource](https://developer.android.com/reference/android/view/MotionEvent.html#getSource())directly. <br />                                                                                                                                                                                                                                    |
| `java-static `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)     | `@`[ReplaceWith](https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith)`(expression = "event.getX(pointerIndex)")` ~~[getX](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#getX(android.view.MotionEvent,int))~~`(event: `[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)`!, pointerIndex: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` **This function is deprecated.** Call[getX](https://developer.android.com/reference/android/view/MotionEvent.html#getX())directly. <br />                                                                                                                                                |
| `java-static `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)     | `@`[ReplaceWith](https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith)`(expression = "event.getY(pointerIndex)")` ~~[getY](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#getY(android.view.MotionEvent,int))~~`(event: `[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)`!, pointerIndex: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` **This function is deprecated.** Call[getY](https://developer.android.com/reference/android/view/MotionEvent.html#getY())directly. <br />                                                                                                                                                |
| `java-static `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [isFromSource](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#isFromSource(android.view.MotionEvent,int))`(event: `[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)`, source: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Determines whether the event is from the given source.                                                                                                                                                                                                                                                                                                                                                                          |

## Constants

### ACTION_HOVER_ENTER

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val ACTION_HOVER_ENTER = 9: Int
```
| **This property is deprecated.**   
|
| Use[ACTION_HOVER_ENTER](https://developer.android.com/reference/android/view/MotionEvent.html#ACTION_HOVER_ENTER())directly.

Synonym for[ACTION_HOVER_ENTER](https://developer.android.com/reference/android/view/MotionEvent.html#ACTION_HOVER_ENTER()).  

### ACTION_HOVER_EXIT

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val ACTION_HOVER_EXIT = 10: Int
```
| **This property is deprecated.**   
|
| Use[ACTION_HOVER_EXIT](https://developer.android.com/reference/android/view/MotionEvent.html#ACTION_HOVER_EXIT())directly.

Synonym for[ACTION_HOVER_EXIT](https://developer.android.com/reference/android/view/MotionEvent.html#ACTION_HOVER_EXIT()).  

### ACTION_HOVER_MOVE

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val ACTION_HOVER_MOVE = 7: Int
```
| **This property is deprecated.**   
|
| Use[ACTION_HOVER_MOVE](https://developer.android.com/reference/android/view/MotionEvent.html#ACTION_HOVER_MOVE())directly.

Synonym for[ACTION_HOVER_MOVE](https://developer.android.com/reference/android/view/MotionEvent.html#ACTION_HOVER_MOVE()).  

### ACTION_MASK

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val ACTION_MASK = 255: Int
```
| **This property is deprecated.**   
|
| Use[ACTION_MASK](https://developer.android.com/reference/android/view/MotionEvent.html#ACTION_MASK())directly.

Synonym for[ACTION_MASK](https://developer.android.com/reference/android/view/MotionEvent.html#ACTION_MASK()).  

### ACTION_POINTER_DOWN

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val ACTION_POINTER_DOWN = 5: Int
```
| **This property is deprecated.**   
|
| Use[ACTION_POINTER_DOWN](https://developer.android.com/reference/android/view/MotionEvent.html#ACTION_POINTER_DOWN())directly.

Synonym for[ACTION_POINTER_DOWN](https://developer.android.com/reference/android/view/MotionEvent.html#ACTION_POINTER_DOWN()).  

### ACTION_POINTER_INDEX_MASK

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val ACTION_POINTER_INDEX_MASK = 65280: Int
```
| **This property is deprecated.**   
|
| Use[ACTION_POINTER_INDEX_MASK](https://developer.android.com/reference/android/view/MotionEvent.html#ACTION_POINTER_INDEX_MASK())directly.

Synonym for[ACTION_POINTER_INDEX_MASK](https://developer.android.com/reference/android/view/MotionEvent.html#ACTION_POINTER_INDEX_MASK()).  

### ACTION_POINTER_INDEX_SHIFT

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val ACTION_POINTER_INDEX_SHIFT = 8: Int
```
| **This property is deprecated.**   
|
| Use[ACTION_POINTER_INDEX_SHIFT](https://developer.android.com/reference/android/view/MotionEvent.html#ACTION_POINTER_INDEX_SHIFT())directly.

Synonym for[ACTION_POINTER_INDEX_SHIFT](https://developer.android.com/reference/android/view/MotionEvent.html#ACTION_POINTER_INDEX_SHIFT()).  

### ACTION_POINTER_UP

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val ACTION_POINTER_UP = 6: Int
```
| **This property is deprecated.**   
|
| Use[ACTION_POINTER_UP](https://developer.android.com/reference/android/view/MotionEvent.html#ACTION_POINTER_UP())directly.

Synonym for[ACTION_POINTER_UP](https://developer.android.com/reference/android/view/MotionEvent.html#ACTION_POINTER_UP()).  

### ACTION_SCROLL

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val ACTION_SCROLL = 8: Int
```
| **This property is deprecated.**   
|
| Use[ACTION_SCROLL](https://developer.android.com/reference/android/view/MotionEvent.html#ACTION_SCROLL())directly.

Synonym for[ACTION_SCROLL](https://developer.android.com/reference/android/view/MotionEvent.html#ACTION_SCROLL()).  

### AXIS_BRAKE

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_BRAKE = 23: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_BRAKE](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_BRAKE())directly.

Synonym for[AXIS_BRAKE](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_BRAKE()).  

### AXIS_DISTANCE

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_DISTANCE = 24: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_DISTANCE](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_DISTANCE())directly.

Synonym for[AXIS_DISTANCE](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_DISTANCE()).  

### AXIS_GAS

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_GAS = 22: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_GAS](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GAS())directly.

Synonym for[AXIS_GAS](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GAS()).  

### AXIS_GENERIC_1

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_GENERIC_1 = 32: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_GENERIC_1](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_1())directly.

Synonym for[AXIS_GENERIC_1](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_1()).  

### AXIS_GENERIC_10

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_GENERIC_10 = 41: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_GENERIC_10](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_10())directly.

Synonym for[AXIS_GENERIC_10](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_10()).  

### AXIS_GENERIC_11

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_GENERIC_11 = 42: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_GENERIC_11](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_11())directly.

Synonym for[AXIS_GENERIC_11](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_11()).  

### AXIS_GENERIC_12

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_GENERIC_12 = 43: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_GENERIC_12](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_12())directly.

Synonym for[AXIS_GENERIC_12](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_12()).  

### AXIS_GENERIC_13

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_GENERIC_13 = 44: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_GENERIC_13](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_13())directly.

Synonym for[AXIS_GENERIC_13](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_13()).  

### AXIS_GENERIC_14

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_GENERIC_14 = 45: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_GENERIC_14](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_14())directly.

Synonym for[AXIS_GENERIC_14](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_14()).  

### AXIS_GENERIC_15

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_GENERIC_15 = 46: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_GENERIC_15](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_15())directly.

Synonym for[AXIS_GENERIC_15](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_15()).  

### AXIS_GENERIC_16

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_GENERIC_16 = 47: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_GENERIC_16](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_16())directly.

Synonym for[AXIS_GENERIC_16](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_16()).  

### AXIS_GENERIC_2

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_GENERIC_2 = 33: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_GENERIC_2](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_2())directly.

Synonym for[AXIS_GENERIC_2](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_2()).  

### AXIS_GENERIC_3

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_GENERIC_3 = 34: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_GENERIC_3](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_3())directly.

Synonym for[AXIS_GENERIC_3](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_3()).  

### AXIS_GENERIC_4

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_GENERIC_4 = 35: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_GENERIC_4](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_4())directly.

Synonym for[AXIS_GENERIC_4](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_4()).  

### AXIS_GENERIC_5

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_GENERIC_5 = 36: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_GENERIC_5](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_5())directly.

Synonym for[AXIS_GENERIC_5](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_5()).  

### AXIS_GENERIC_6

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_GENERIC_6 = 37: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_GENERIC_6](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_6())directly.

Synonym for[AXIS_GENERIC_6](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_6()).  

### AXIS_GENERIC_7

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_GENERIC_7 = 38: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_GENERIC_7](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_7())directly.

Synonym for[AXIS_GENERIC_7](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_7()).  

### AXIS_GENERIC_8

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_GENERIC_8 = 39: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_GENERIC_8](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_8())directly.

Synonym for[AXIS_GENERIC_8](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_8()).  

### AXIS_GENERIC_9

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_GENERIC_9 = 40: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_GENERIC_9](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_9())directly.

Synonym for[AXIS_GENERIC_9](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_GENERIC_9()).  

### AXIS_HAT_X

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_HAT_X = 15: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_HAT_X](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_HAT_X())directly.

Synonym for[AXIS_HAT_X](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_HAT_X()).  

### AXIS_HAT_Y

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_HAT_Y = 16: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_HAT_Y](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_HAT_Y())directly.

Synonym for[AXIS_HAT_Y](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_HAT_Y()).  

### AXIS_HSCROLL

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_HSCROLL = 10: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_HSCROLL](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_HSCROLL())directly.

Synonym for[AXIS_HSCROLL](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_HSCROLL()).  

### AXIS_LTRIGGER

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_LTRIGGER = 17: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_LTRIGGER](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_LTRIGGER())directly.

Synonym for[AXIS_LTRIGGER](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_LTRIGGER()).  

### AXIS_ORIENTATION

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_ORIENTATION = 8: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_ORIENTATION](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_ORIENTATION())directly.

Synonym for[AXIS_ORIENTATION](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_ORIENTATION()).  

### AXIS_PRESSURE

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_PRESSURE = 2: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_PRESSURE](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_PRESSURE())directly.

Synonym for[AXIS_PRESSURE](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_PRESSURE()).  

### AXIS_RELATIVE_X

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_RELATIVE_X = 27: Int
```

Synonym for[AXIS_RELATIVE_X](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_RELATIVE_X()).  

### AXIS_RELATIVE_Y

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_RELATIVE_Y = 28: Int
```

Synonym for[AXIS_RELATIVE_Y](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_RELATIVE_Y()).  

### AXIS_RTRIGGER

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_RTRIGGER = 18: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_RTRIGGER](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_RTRIGGER())directly.

Synonym for[AXIS_RTRIGGER](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_RTRIGGER()).  

### AXIS_RUDDER

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_RUDDER = 20: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_RUDDER](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_RUDDER())directly.

Synonym for[AXIS_RUDDER](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_RUDDER()).  

### AXIS_RX

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_RX = 12: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_RX](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_RX())directly.

Synonym for[AXIS_RX](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_RX()).  

### AXIS_RY

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_RY = 13: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_RY](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_RY())directly.

Synonym for[AXIS_RY](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_RY()).  

### AXIS_RZ

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_RZ = 14: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_RZ](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_RZ())directly.

Synonym for[AXIS_RZ](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_RZ()).  

### AXIS_SCROLL

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_SCROLL = 26: Int
```

Synonym for[AXIS_SCROLL](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_SCROLL()).  

### AXIS_SIZE

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_SIZE = 3: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_SIZE](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_SIZE())directly.

Synonym for[AXIS_SIZE](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_SIZE()).  

### AXIS_THROTTLE

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_THROTTLE = 19: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_THROTTLE](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_THROTTLE())directly.

Synonym for[AXIS_THROTTLE](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_THROTTLE()).  

### AXIS_TILT

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_TILT = 25: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_TILT](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_TILT())directly.

Synonym for[AXIS_TILT](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_TILT()).  

### AXIS_TOOL_MAJOR

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_TOOL_MAJOR = 6: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_TOOL_MAJOR](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_TOOL_MAJOR())directly.

Synonym for[AXIS_TOOL_MAJOR](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_TOOL_MAJOR()).  

### AXIS_TOOL_MINOR

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_TOOL_MINOR = 7: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_TOOL_MINOR](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_TOOL_MINOR())directly.

Synonym for[AXIS_TOOL_MINOR](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_TOOL_MINOR()).  

### AXIS_TOUCH_MAJOR

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_TOUCH_MAJOR = 4: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_TOUCH_MAJOR](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_TOUCH_MAJOR())directly.

Synonym for[AXIS_TOUCH_MAJOR](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_TOUCH_MAJOR()).  

### AXIS_TOUCH_MINOR

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_TOUCH_MINOR = 5: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_TOUCH_MINOR](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_TOUCH_MINOR())directly.

Synonym for[AXIS_TOUCH_MINOR](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_TOUCH_MINOR()).  

### AXIS_VSCROLL

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_VSCROLL = 9: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_VSCROLL](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_VSCROLL())directly.

Synonym for[AXIS_VSCROLL](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_VSCROLL()).  

### AXIS_WHEEL

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_WHEEL = 21: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_WHEEL](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_WHEEL())directly.

Synonym for[AXIS_WHEEL](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_WHEEL()).  

### AXIS_X

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_X = 0: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_X](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_X())directly.

Synonym for[AXIS_X](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_X()).  

### AXIS_Y

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_Y = 1: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_Y](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_Y())directly.

Synonym for[AXIS_Y](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_Y()).  

### AXIS_Z

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val AXIS_Z = 11: Int
```
| **This property is deprecated.**   
|
| Use[AXIS_Z](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_Z())directly.

Synonym for[AXIS_Z](https://developer.android.com/reference/android/view/MotionEvent.html#AXIS_Z()).  

### BUTTON_PRIMARY

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val BUTTON_PRIMARY = 1: Int
```
| **This property is deprecated.**   
|
| Use[BUTTON_PRIMARY](https://developer.android.com/reference/android/view/MotionEvent.html#BUTTON_PRIMARY())directly.

Synonym for[BUTTON_PRIMARY](https://developer.android.com/reference/android/view/MotionEvent.html#BUTTON_PRIMARY()).  

## Public functions

### findPointerIndex

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
@ReplaceWith(expression = "event.findPointerIndex(pointerId)")
java-static fun [findPointerIndex](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#findPointerIndex(android.view.MotionEvent,int))(event: MotionEvent!, pointerId: Int): Int
```
| **This function is deprecated.**   
|
| Call[findPointerIndex](https://developer.android.com/reference/android/view/MotionEvent.html#findPointerIndex(int))directly. This method will be removed in a future release.

Call[findPointerIndex](https://developer.android.com/reference/android/view/MotionEvent.html#findPointerIndex(int)).  

### getActionIndex

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
@ReplaceWith(expression = "event.getActionIndex()")
java-static fun [getActionIndex](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#getActionIndex(android.view.MotionEvent))(event: MotionEvent!): Int
```
| **This function is deprecated.**   
|
| Call[getActionIndex](https://developer.android.com/reference/android/view/MotionEvent.html#getActionIndex())directly. This method will be removed in a future release.

Call[getAction](https://developer.android.com/reference/android/view/MotionEvent.html#getAction()), returning only the pointer index portion.  

### getActionMasked

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
@ReplaceWith(expression = "event.getActionMasked()")
java-static fun [getActionMasked](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#getActionMasked(android.view.MotionEvent))(event: MotionEvent!): Int
```
| **This function is deprecated.**   
|
| Call[getAction](https://developer.android.com/reference/android/view/MotionEvent.html#getAction())directly. This method will be removed in a future release.

Call[getAction](https://developer.android.com/reference/android/view/MotionEvent.html#getAction()), returning only the[ACTION_MASK](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#ACTION_MASK())portion.  

### getAxisValue

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
@ReplaceWith(expression = "event.getAxisValue(axis)")
java-static fun [getAxisValue](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#getAxisValue(android.view.MotionEvent,int))(event: MotionEvent!, axis: Int): Float
```
| **This function is deprecated.**   
|
| Call[getAxisValue](https://developer.android.com/reference/android/view/MotionEvent.html#getAxisValue(int))directly. This method will be removed in a future release.

Get axis value for the first pointer index (may be an arbitrary pointer identifier).  

|                                            Parameters                                            |
|--------------------------------------------------------------------------------------------------|-----------------------------------------------------|
| `event: `[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)`!` | motion event for which to get the value.            |
| `axis: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)              | The axis identifier for the axis value to retrieve. |

|                                                See also                                                |
|--------------------------------------------------------------------------------------------------------|---|
| [AXIS_X](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_X()) |   |
| [AXIS_Y](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_Y()) |   |

### getAxisValue

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
@ReplaceWith(expression = "event.getAxisValue(axis, pointerIndex)")
java-static fun [getAxisValue](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#getAxisValue(android.view.MotionEvent,int,int))(event: MotionEvent!, axis: Int, pointerIndex: Int): Float
```
| **This function is deprecated.**   
|
| Call[getAxisValue](https://developer.android.com/reference/android/view/MotionEvent.html#getAxisValue(int, int))directly. This method will be removed in a future release.

Returns the value of the requested axis for the given pointer*index* (use[getPointerId](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#getPointerId(android.view.MotionEvent,int))to find the pointer identifier for this index).  

|                                            Parameters                                            |
|--------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `event: `[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)`!` | motion event for which to get the value.                                                                                                                                                                                                     |
| `axis: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)              | The axis identifier for the axis value to retrieve.                                                                                                                                                                                          |
| `pointerIndex: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)      | Raw index of pointer to retrieve. Value may be from 0 (the first pointer that is down) to[getPointerCount](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#getPointerCount(android.view.MotionEvent))-1. |

|                                     Returns                                     |
|---------------------------------------------------------------------------------|-----------------------------------------------------------|
| [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) | The value of the axis, or 0 if the axis is not available. |

|                                                See also                                                |
|--------------------------------------------------------------------------------------------------------|---|
| [AXIS_X](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_X()) |   |
| [AXIS_Y](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#AXIS_Y()) |   |

### getButtonState

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
@ReplaceWith(expression = "event.getButtonState()")
java-static fun [getButtonState](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#getButtonState(android.view.MotionEvent))(event: MotionEvent!): Int
```
| **This function is deprecated.**   
|
Call[getButtonState](https://developer.android.com/reference/android/view/MotionEvent.html#getButtonState())directly. This method will be removed in a future release.  

### getPointerCount

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
@ReplaceWith(expression = "event.getPointerCount()")
java-static fun [getPointerCount](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#getPointerCount(android.view.MotionEvent))(event: MotionEvent!): Int
```
| **This function is deprecated.**   
|
| Call[getPointerCount](https://developer.android.com/reference/android/view/MotionEvent.html#getPointerCount())directly. This method will be removed in a future release.

The number of pointers of data contained in this event. Always  

### getPointerId

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
@ReplaceWith(expression = "event.getPointerId(pointerIndex)")
java-static fun [getPointerId](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#getPointerId(android.view.MotionEvent,int))(event: MotionEvent!, pointerIndex: Int): Int
```
| **This function is deprecated.**   
|
| Call[getPointerId](https://developer.android.com/reference/android/view/MotionEvent.html#getPointerId(int))directly. This method will be removed in a future release.

Call[getPointerId](https://developer.android.com/reference/android/view/MotionEvent.html#getPointerId(int)).  

### getSource

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
@ReplaceWith(expression = "event.getSource()")
java-static fun [getSource](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#getSource(android.view.MotionEvent))(event: MotionEvent!): Int
```
| **This function is deprecated.**   
|
| Call[getSource](https://developer.android.com/reference/android/view/MotionEvent.html#getSource())directly. This method will be removed in a future release.

Gets the source of the event.  

|                                   Returns                                   |
|-----------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The event source or[SOURCE_UNKNOWN](https://developer.android.com/reference/kotlin/androidx/core/view/InputDeviceCompat#SOURCE_UNKNOWN())if unknown. |

### getX

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
@ReplaceWith(expression = "event.getX(pointerIndex)")
java-static fun [getX](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#getX(android.view.MotionEvent,int))(event: MotionEvent!, pointerIndex: Int): Float
```
| **This function is deprecated.**   
|
| Call[getX](https://developer.android.com/reference/android/view/MotionEvent.html#getX())directly. This method will be removed in a future release.

Call[getX](https://developer.android.com/reference/android/view/MotionEvent.html#getX(int)).  

### getY

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
@ReplaceWith(expression = "event.getY(pointerIndex)")
java-static fun [getY](https://developer.android.com/reference/kotlin/androidx/core/view/MotionEventCompat#getY(android.view.MotionEvent,int))(event: MotionEvent!, pointerIndex: Int): Float
```
| **This function is deprecated.**   
|
| Call[getY](https://developer.android.com/reference/android/view/MotionEvent.html#getY())directly. This method will be removed in a future release.

Call[getY](https://developer.android.com/reference/android/view/MotionEvent.html#getY(int)).  

### isFromSource

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
java-static fun isFromSource(event: MotionEvent, source: Int): Boolean
```

Determines whether the event is from the given source.  

|                                          Parameters                                           |
|-----------------------------------------------------------------------------------------------|---------------------------------------------|
| `event: `[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html) | motion event for which to check the source. |
| `source: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)         | The input source to check against.          |

|                                       Returns                                       |
|-------------------------------------------------------------------------------------|---------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | Whether the event is from the given source. |