The Android XR SDK is now available in Developer Preview. We want your feedback! Visit our
support page to reach out.
Stay organized with collections
Save and categorize content based on your preferences.
AndroidXRMouse
An Input device based on Android XR Mouse interaction profile.
It's derived from OpenXRDevice instead of Mouse to align with the general usage of other OpenXR interactions.
Summary
Inheritance
Inherits from:
OpenXRDevice
Properties
pose
PoseControl pose
Gets the PoseControl that represents the _pose OpenXR binding.
ButtonControl primaryButton
Gets the ButtonControl that represents the _select OpenXR bindings.
ButtonControl secondaryButton
Gets the ButtonControl that represents the _secondary OpenXR bindings.
ButtonControl tertiaryButton
Gets the ButtonControl that represents the _tertiary OpenXR bindings.
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 2024-12-12 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-12 UTC."],[],[],null,["# AndroidXRMouse Class Reference\n\nAndroidXRMouse\n==============\n\nAn Input device based on Android XR Mouse interaction profile.\n\nIt's derived from OpenXRDevice instead of [Mouse](/develop/xr/unity/reference/namespace/Google/XR/Extensions#xrobjectlabel_mouse) to align with the general usage of other OpenXR interactions.\n\nSummary\n-------\n\n### Inheritance\n\nInherits from: `OpenXRDevice`\n\n| ### Properties ||\n|-------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|\n| [pose](#pose) | `PoseControl` Gets the PoseControl that represents the _pose OpenXR binding. |\n| [primaryButton](#primarybutton) | `ButtonControl` Gets the [ButtonControl](xref:UnityEngine.InputSystem.Controls.ButtonControl) that represents the _select OpenXR bindings. |\n| [scroll](#scroll) | `Vector2Control` Gets the [Vector2Control](xref:UnityEngine.InputSystem.Controls.Vector2Control) that represents the _scroll OpenXR binding. |\n| [secondaryButton](#secondarybutton) | `ButtonControl` Gets the [ButtonControl](xref:UnityEngine.InputSystem.Controls.ButtonControl) that represents the _secondary OpenXR bindings. |\n| [tertiaryButton](#tertiarybutton) | `ButtonControl` Gets the [ButtonControl](xref:UnityEngine.InputSystem.Controls.ButtonControl) that represents the _tertiary OpenXR bindings. |\n\nProperties\n----------\n\n### pose\n\n```c#\nPoseControl pose\n``` \nGets the PoseControl that represents the _pose OpenXR binding. \n\n### primaryButton\n\n```c#\nButtonControl primaryButton\n``` \nGets the [ButtonControl](xref:UnityEngine.InputSystem.Controls.ButtonControl) that represents the _select OpenXR bindings. \n\n### scroll\n\n```c#\nVector2Control scroll\n``` \nGets the [Vector2Control](xref:UnityEngine.InputSystem.Controls.Vector2Control) that represents the _scroll OpenXR binding. \n\n### secondaryButton\n\n```c#\nButtonControl secondaryButton\n``` \nGets the [ButtonControl](xref:UnityEngine.InputSystem.Controls.ButtonControl) that represents the _secondary OpenXR bindings. \n\n### tertiaryButton\n\n```c#\nButtonControl tertiaryButton\n``` \nGets the [ButtonControl](xref:UnityEngine.InputSystem.Controls.ButtonControl) that represents the _tertiary OpenXR bindings."]]