docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AndroidMouseInteractionProfile.AndroidMouseInteraction

    An InputDevice representing an Android mouse that supports interaction in OpenXR.

    Inheritance
    object
    AndroidMouseInteractionProfile.AndroidMouseInteraction
    Namespace: UnityEngine.XR.OpenXR.Features.Interactions
    Assembly: Unity.XR.OpenXR.dll
    Syntax
    public class AndroidMouseInteractionProfile.AndroidMouseInteraction : InputSystem.InputDevice

    Properties

    click

    Primary mouse button (select/click). Returns true when the primary button is pressed.

    Declaration
    public ButtonControl click { get; }
    Property Value
    Type Description
    ButtonControl

    scroll

    Mouse scroll wheel input. 2D continuous input with X and Y components in range -1.0 to 1.0. The Y component represents vertical scrolling (where -1.0 is scroll down and 1.0 is scroll up). The X component represents horizontal scrolling. Used for depth movement and interaction scrolling.

    Declaration
    public Vector2Control scroll { get; }
    Property Value
    Type Description
    Vector2Control

    secondaryClick

    Secondary mouse button (right-click). Returns true when the secondary button is pressed.

    Declaration
    public ButtonControl secondaryClick { get; }
    Property Value
    Type Description
    ButtonControl

    tertiaryClick

    Tertiary mouse button (scroll wheel button or middle button). Returns true when pressed.

    Declaration
    public ButtonControl tertiaryClick { get; }
    Property Value
    Type Description
    ButtonControl

    Methods

    FinishSetup()

    Declaration
    protected override void FinishSetup()
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)