Stay organized with collections
Save and categorize content based on your preferences.
GameActivityMotionEvent
#include <GameActivity.h>
Describe a motion event that happened on the GameActivity 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
action
int32_t GameActivityMotionEvent::action
int32_t GameActivityMotionEvent::actionButton
int32_t GameActivityMotionEvent::buttonState
classification
int32_t GameActivityMotionEvent::classification
deviceId
int32_t GameActivityMotionEvent::deviceId
downTime
int64_t GameActivityMotionEvent::downTime
edgeFlags
int32_t GameActivityMotionEvent::edgeFlags
eventTime
int64_t GameActivityMotionEvent::eventTime
flags
int32_t GameActivityMotionEvent::flags
int32_t GameActivityMotionEvent::metaState
pointerCount
uint32_t GameActivityMotionEvent::pointerCount
precisionX
float GameActivityMotionEvent::precisionX
precisionY
float GameActivityMotionEvent::precisionY
source
int32_t GameActivityMotionEvent::source
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 2021-07-12 UTC.
[null,null,["Last updated 2021-07-12 UTC."],[],[],null,["# GameActivityMotionEvent Struct Reference\n\nGameActivityMotionEvent\n=======================\n\n`#include \u003cGameActivity.h\u003e`\n\nDescribe a motion event that happened on the [GameActivity](/reference/games/game-activity/struct/game-activity#struct_game_activity) SurfaceView.\n\nSummary\n-------\n\nThis is 1:1 mapping to the information contained in a Java `MotionEvent` (see \u003chttps://developer.android.com/reference/android/view/MotionEvent\u003e).\n\n| ### Public attributes ||\n|------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------|\n| [action](#struct_game_activity_motion_event_1add3b7ae3ab0b47a376dc6a148e7da604) | `int32_t` |\n| [actionButton](#struct_game_activity_motion_event_1aa3e8be1cbd4060a1b484e356af6734c3) | `int32_t` |\n| [buttonState](#struct_game_activity_motion_event_1a0b17cf0611d2b084c7c4cfc9b9b78a07) | `int32_t` |\n| [classification](#struct_game_activity_motion_event_1af3282a2d2bfc2a399c57bf12ed05972a) | `int32_t` |\n| [deviceId](#struct_game_activity_motion_event_1a60aa7f271b5906033a479312c6438fe5) | `int32_t` |\n| [downTime](#struct_game_activity_motion_event_1a93e7587f8cc05b1ff2a9ee3ab18966e8) | `int64_t` |\n| [edgeFlags](#struct_game_activity_motion_event_1a7fc39369698dd3df195f37ec0852d498) | `int32_t` |\n| [eventTime](#struct_game_activity_motion_event_1a6f4602d262d98e475f5fc4db8d59482e) | `int64_t` |\n| [flags](#struct_game_activity_motion_event_1a2efef35ee729b5cb5d4cb143719107ad) | `int32_t` |\n| [metaState](#struct_game_activity_motion_event_1a9be3aba33a070d3603a2be0a793b4d91) | `int32_t` |\n| [pointerCount](#struct_game_activity_motion_event_1a1773a657acd557e7d71e520cad660b76) | `uint32_t` |\n| [pointers](#struct_game_activity_motion_event_1a366a346326770152cedcef6593f7df9f)`[GAMEACTIVITY_MAX_NUM_POINTERS_IN_MOTION_EVENT]` | [GameActivityPointerAxes](/reference/games/game-activity/struct/game-activity-pointer-axes#struct_game_activity_pointer_axes) |\n| [precisionX](#struct_game_activity_motion_event_1a6ad7e44ed8cd220dca76253c0b8a7872) | `float` |\n| [precisionY](#struct_game_activity_motion_event_1ab62692d7e2a75f18e8cf85343e9ae23d) | `float` |\n| [source](#struct_game_activity_motion_event_1ab5c184590e4e822f8efde0f2d3c3e911) | `int32_t` |\n\nPublic attributes\n-----------------\n\n### action\n\n```scdoc\nint32_t GameActivityMotionEvent::action\n``` \n\n### actionButton\n\n```scdoc\nint32_t GameActivityMotionEvent::actionButton\n``` \n\n### buttonState\n\n```scdoc\nint32_t GameActivityMotionEvent::buttonState\n``` \n\n### classification\n\n```scdoc\nint32_t GameActivityMotionEvent::classification\n``` \n\n### deviceId\n\n```scdoc\nint32_t GameActivityMotionEvent::deviceId\n``` \n\n### downTime\n\n```scdoc\nint64_t GameActivityMotionEvent::downTime\n``` \n\n### edgeFlags\n\n```scdoc\nint32_t GameActivityMotionEvent::edgeFlags\n``` \n\n### eventTime\n\n```scdoc\nint64_t GameActivityMotionEvent::eventTime\n``` \n\n### flags\n\n```scdoc\nint32_t GameActivityMotionEvent::flags\n``` \n\n### metaState\n\n```scdoc\nint32_t GameActivityMotionEvent::metaState\n``` \n\n### pointerCount\n\n```scdoc\nuint32_t GameActivityMotionEvent::pointerCount\n``` \n\n### pointers\n\n```transact-sql\nGameActivityPointerAxes GameActivityMotionEvent::pointers[GAMEACTIVITY_MAX_NUM_POINTERS_IN_MOTION_EVENT]\n``` \n\n### precisionX\n\n```text\nfloat GameActivityMotionEvent::precisionX\n``` \n\n### precisionY\n\n```text\nfloat GameActivityMotionEvent::precisionY\n``` \n\n### source\n\n```scdoc\nint32_t GameActivityMotionEvent::source\n```"]]