# GameActivityKeyEvent

`#include <GameActivity.h>`

Describe a key 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 `KeyEvent` (see <https://developer.android.com/reference/android/view/KeyEvent>).

| ### Public attributes ||
|---|---|
| `https://developer.android.com/reference/games/game-activity/struct/game-activity-key-event#struct_game_activity_key_event_1ae366c23553f83a29526bb6c5ed2b951e` | `int32_t` |
| `https://developer.android.com/reference/games/game-activity/struct/game-activity-key-event#struct_game_activity_key_event_1ab4fcc35368449233ec5e979e9d1dd5a2` | `int32_t` |
| `https://developer.android.com/reference/games/game-activity/struct/game-activity-key-event#struct_game_activity_key_event_1ac278f138562f04662c2fa36a6bcc0753` | `int64_t` |
| `https://developer.android.com/reference/games/game-activity/struct/game-activity-key-event#struct_game_activity_key_event_1aba6c53ad610bebafbc26a5c7b05f7bee` | `int64_t` |
| `https://developer.android.com/reference/games/game-activity/struct/game-activity-key-event#struct_game_activity_key_event_1aa66a28e2a448e8dd8896abe86d381e2c` | `int32_t` |
| `https://developer.android.com/reference/games/game-activity/struct/game-activity-key-event#struct_game_activity_key_event_1a5e1e1dc1a77c0dd975e7673bd1d88d24` | `int32_t` |
| `https://developer.android.com/reference/games/game-activity/struct/game-activity-key-event#struct_game_activity_key_event_1a559fac063d5beae70a91b012884a51b5` | `int32_t` |
| `https://developer.android.com/reference/games/game-activity/struct/game-activity-key-event#struct_game_activity_key_event_1aa5b837e3934c7e04f3fb1c6454612e43` | `int32_t` |
| `https://developer.android.com/reference/games/game-activity/struct/game-activity-key-event#struct_game_activity_key_event_1acba328e921491188d45f444d3bbdecda` | `int32_t` |
| `https://developer.android.com/reference/games/game-activity/struct/game-activity-key-event#struct_game_activity_key_event_1a3c9a5085d30870964e91c3fac3a231b6` | `int32_t` |

## Public attributes

### action

```scdoc
int32_t GameActivityKeyEvent::action
```

### deviceId

```scdoc
int32_t GameActivityKeyEvent::deviceId
```

### downTime

```scdoc
int64_t GameActivityKeyEvent::downTime
```

### eventTime

```scdoc
int64_t GameActivityKeyEvent::eventTime
```

### flags

```scdoc
int32_t GameActivityKeyEvent::flags
```

### keyCode

```scdoc
int32_t GameActivityKeyEvent::keyCode
```

### metaState

```scdoc
int32_t GameActivityKeyEvent::metaState
```

### modifiers

```scdoc
int32_t GameActivityKeyEvent::modifiers
```

### repeatCount

```scdoc
int32_t GameActivityKeyEvent::repeatCount
```

### source

```scdoc
int32_t GameActivityKeyEvent::source
```