Stay organized with collections
Save and categorize content based on your preferences.
GameActivityPointerAxes
#include <GameActivity.h>
Describe information about a pointer, found in a GameActivityMotionEvent.
Summary
You can read values directly from this structure, or use helper functions (GameActivityPointerAxes_getX
, GameActivityPointerAxes_getY
and GameActivityPointerAxes_getAxisValue
).
The X axis and Y axis are enabled by default but any other axis that you want to read must be enabled first, using GameActivityPointerAxes_enableAxis
.
See also:
GameActivityMotionEvent
Public attributes
|
axisValues[GAME_ACTIVITY_POINTER_INFO_AXIS_COUNT]
|
float
|
id
|
int32_t
|
rawX
|
float
|
rawY
|
float
|
Public attributes
axisValues
float GameActivityPointerAxes::axisValues[GAME_ACTIVITY_POINTER_INFO_AXIS_COUNT]
id
int32_t GameActivityPointerAxes::id
rawX
float GameActivityPointerAxes::rawX
rawY
float GameActivityPointerAxes::rawY
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,["# GameActivityPointerAxes Struct Reference\n\nGameActivityPointerAxes\n=======================\n\n`#include \u003cGameActivity.h\u003e`\n\nDescribe information about a pointer, found in a [GameActivityMotionEvent](/reference/games/game-activity/struct/game-activity-motion-event#struct_game_activity_motion_event).\n\nSummary\n-------\n\nYou can read values directly from this structure, or use helper functions (`GameActivityPointerAxes_getX`, `GameActivityPointerAxes_getY` and `GameActivityPointerAxes_getAxisValue`).\n\nThe X axis and Y axis are enabled by default but any other axis that you want to read **must** be enabled first, using `GameActivityPointerAxes_enableAxis`.\n\n\n**See also:**\n[GameActivityMotionEvent](/reference/games/game-activity/struct/game-activity-motion-event#struct_game_activity_motion_event)\n\n| ### Public attributes ||\n|------------------------------------------------------------------------------------------------------------------------------|-----------|\n| [axisValues](#struct_game_activity_pointer_axes_1a33dc02a13660839442bab6c42023c0ca)`[GAME_ACTIVITY_POINTER_INFO_AXIS_COUNT]` | `float` |\n| [id](#struct_game_activity_pointer_axes_1af13fcfb7607e229bed7904d0bdda3978) | `int32_t` |\n| [rawX](#struct_game_activity_pointer_axes_1a9e2248df12055a58e090e5c8ce4f5074) | `float` |\n| [rawY](#struct_game_activity_pointer_axes_1aca486843c68cce161adb15857e7314e9) | `float` |\n\nPublic attributes\n-----------------\n\n### axisValues\n\n```transact-sql\nfloat GameActivityPointerAxes::axisValues[GAME_ACTIVITY_POINTER_INFO_AXIS_COUNT]\n``` \n\n### id\n\n```scdoc\nint32_t GameActivityPointerAxes::id\n``` \n\n### rawX\n\n```text\nfloat GameActivityPointerAxes::rawX\n``` \n\n### rawY\n\n```text\nfloat GameActivityPointerAxes::rawY\n```"]]