android_input_buffer

Summary

Public attributes

keyEvents[NATIVE_APP_GLUE_MAX_NUM_KEY_EVENTS]
Pointer to a read-only array of pointers to GameActivityKeyEvent.
keyEventsCount
uint64_t
The number of valid "Key" events in keyEvents.
motionEvents[NATIVE_APP_GLUE_MAX_NUM_MOTION_EVENTS]
Pointer to a read-only array of pointers to GameActivityMotionEvent.
motionEventsCount
uint64_t
The number of valid motion events in motionEvents.

Public attributes

keyEvents

GameActivityKeyEvent android_input_buffer::keyEvents[NATIVE_APP_GLUE_MAX_NUM_KEY_EVENTS]

Pointer to a read-only array of pointers to GameActivityKeyEvent.

Only the first keyEventsCount events are valid.

keyEventsCount

uint64_t android_input_buffer::keyEventsCount

The number of valid "Key" events in keyEvents.

motionEvents

GameActivityMotionEvent android_input_buffer::motionEvents[NATIVE_APP_GLUE_MAX_NUM_MOTION_EVENTS]

Pointer to a read-only array of pointers to GameActivityMotionEvent.

Only the first motionEventsCount events are valid.

motionEventsCount

uint64_t android_input_buffer::motionEventsCount

The number of valid motion events in motionEvents.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2022年03月15日 UTC.