# android_input_buffer

## Summary

| ### Public attributes ||
|---|---|
| `https://developer.android.com/reference/games/game-activity/structandroid/input-buffer#structandroid__input__buffer_1a66d38c0e3dd3070cb1c4c285a12ec17a[NATIVE_APP_GLUE_MAX_NUM_KEY_EVENTS]` | `https://developer.android.com/reference/games/game-activity/struct/game-activity-key-event#struct_game_activity_key_event` Pointer to a read-only array of pointers to [GameActivityKeyEvent](https://developer.android.com/reference/games/game-activity/struct/game-activity-key-event#struct_game_activity_key_event). |
| `https://developer.android.com/reference/games/game-activity/structandroid/input-buffer#structandroid__input__buffer_1aa18360bbded2198b6caa588ec4ece781` | `uint64_t` The number of valid "Key" events in `keyEvents`. |
| `https://developer.android.com/reference/games/game-activity/structandroid/input-buffer#structandroid__input__buffer_1abb5fa41d5d126d832050bea8798367ad[NATIVE_APP_GLUE_MAX_NUM_MOTION_EVENTS]` | `https://developer.android.com/reference/games/game-activity/struct/game-activity-motion-event#struct_game_activity_motion_event` Pointer to a read-only array of pointers to [GameActivityMotionEvent](https://developer.android.com/reference/games/game-activity/struct/game-activity-motion-event#struct_game_activity_motion_event). |
| `https://developer.android.com/reference/games/game-activity/structandroid/input-buffer#structandroid__input__buffer_1ac66cd448e5bd142df124b40df5255cd5` | `uint64_t` The number of valid motion events in `motionEvents`. |

## Public attributes

### keyEvents

```transact-sql
GameActivityKeyEvent android_input_buffer::keyEvents[NATIVE_APP_GLUE_MAX_NUM_KEY_EVENTS]
```
Pointer to a read-only array of pointers to [GameActivityKeyEvent](https://developer.android.com/reference/games/game-activity/struct/game-activity-key-event#struct_game_activity_key_event).

Only the first keyEventsCount events are valid.

### keyEventsCount

```scdoc
uint64_t android_input_buffer::keyEventsCount
```
The number of valid "Key" events in `keyEvents`.

### motionEvents

```transact-sql
GameActivityMotionEvent android_input_buffer::motionEvents[NATIVE_APP_GLUE_MAX_NUM_MOTION_EVENTS]
```
Pointer to a read-only array of pointers to [GameActivityMotionEvent](https://developer.android.com/reference/games/game-activity/struct/game-activity-motion-event#struct_game_activity_motion_event).

Only the first motionEventsCount events are valid.

### motionEventsCount

```scdoc
uint64_t android_input_buffer::motionEventsCount
```
The number of valid motion events in `motionEvents`.