# GameActivityMotionEvent

`#include <GameActivity.h>`

Describe a motion event that happened on the [GameActivity](https://developer.android.com/reference/games/game-activity/struct/game-activity#struct_game_activity) SurfaceView.

## Summary

This is 1:1 mapping to the information contained in a Java `MotionEvent` (see <https://developer.android.com/reference/android/view/MotionEvent>).

| ### Public attributes ||
|---|---|
| `https://developer.android.com/reference/games/game-activity/struct/game-activity-motion-event#struct_game_activity_motion_event_1add3b7ae3ab0b47a376dc6a148e7da604` | `int32_t` |
| `https://developer.android.com/reference/games/game-activity/struct/game-activity-motion-event#struct_game_activity_motion_event_1aa3e8be1cbd4060a1b484e356af6734c3` | `int32_t` |
| `https://developer.android.com/reference/games/game-activity/struct/game-activity-motion-event#struct_game_activity_motion_event_1a0b17cf0611d2b084c7c4cfc9b9b78a07` | `int32_t` |
| `https://developer.android.com/reference/games/game-activity/struct/game-activity-motion-event#struct_game_activity_motion_event_1af3282a2d2bfc2a399c57bf12ed05972a` | `int32_t` |
| `https://developer.android.com/reference/games/game-activity/struct/game-activity-motion-event#struct_game_activity_motion_event_1a60aa7f271b5906033a479312c6438fe5` | `int32_t` |
| `https://developer.android.com/reference/games/game-activity/struct/game-activity-motion-event#struct_game_activity_motion_event_1a93e7587f8cc05b1ff2a9ee3ab18966e8` | `int64_t` |
| `https://developer.android.com/reference/games/game-activity/struct/game-activity-motion-event#struct_game_activity_motion_event_1a7fc39369698dd3df195f37ec0852d498` | `int32_t` |
| `https://developer.android.com/reference/games/game-activity/struct/game-activity-motion-event#struct_game_activity_motion_event_1a6f4602d262d98e475f5fc4db8d59482e` | `int64_t` |
| `https://developer.android.com/reference/games/game-activity/struct/game-activity-motion-event#struct_game_activity_motion_event_1a2efef35ee729b5cb5d4cb143719107ad` | `int32_t` |
| `https://developer.android.com/reference/games/game-activity/struct/game-activity-motion-event#struct_game_activity_motion_event_1a9be3aba33a070d3603a2be0a793b4d91` | `int32_t` |
| `https://developer.android.com/reference/games/game-activity/struct/game-activity-motion-event#struct_game_activity_motion_event_1a1773a657acd557e7d71e520cad660b76` | `uint32_t` |
| `https://developer.android.com/reference/games/game-activity/struct/game-activity-motion-event#struct_game_activity_motion_event_1a366a346326770152cedcef6593f7df9f[GAMEACTIVITY_MAX_NUM_POINTERS_IN_MOTION_EVENT]` | `https://developer.android.com/reference/games/game-activity/struct/game-activity-pointer-axes#struct_game_activity_pointer_axes` |
| `https://developer.android.com/reference/games/game-activity/struct/game-activity-motion-event#struct_game_activity_motion_event_1a6ad7e44ed8cd220dca76253c0b8a7872` | `float` |
| `https://developer.android.com/reference/games/game-activity/struct/game-activity-motion-event#struct_game_activity_motion_event_1ab62692d7e2a75f18e8cf85343e9ae23d` | `float` |
| `https://developer.android.com/reference/games/game-activity/struct/game-activity-motion-event#struct_game_activity_motion_event_1ab5c184590e4e822f8efde0f2d3c3e911` | `int32_t` |

## Public attributes

### action

```scdoc
int32_t GameActivityMotionEvent::action
```

### actionButton

```scdoc
int32_t GameActivityMotionEvent::actionButton
```

### buttonState

```scdoc
int32_t GameActivityMotionEvent::buttonState
```

### classification

```scdoc
int32_t GameActivityMotionEvent::classification
```

### deviceId

```scdoc
int32_t GameActivityMotionEvent::deviceId
```

### downTime

```scdoc
int64_t GameActivityMotionEvent::downTime
```

### edgeFlags

```scdoc
int32_t GameActivityMotionEvent::edgeFlags
```

### eventTime

```scdoc
int64_t GameActivityMotionEvent::eventTime
```

### flags

```scdoc
int32_t GameActivityMotionEvent::flags
```

### metaState

```scdoc
int32_t GameActivityMotionEvent::metaState
```

### pointerCount

```scdoc
uint32_t GameActivityMotionEvent::pointerCount
```

### pointers

```transact-sql
GameActivityPointerAxes GameActivityMotionEvent::pointers[GAMEACTIVITY_MAX_NUM_POINTERS_IN_MOTION_EVENT]
```

### precisionX

```text
float GameActivityMotionEvent::precisionX
```

### precisionY

```text
float GameActivityMotionEvent::precisionY
```

### source

```scdoc
int32_t GameActivityMotionEvent::source
```