docs.unity3d.com
    Show / Hide Table of Contents

    Enum ControllerButton

    Button indices for buttons

    Namespace: UnityEngine.XR.Interaction.Toolkit.Inputs.Simulation
    Syntax
    public enum ControllerButton

    Fields

    Name Description Value
    GripButton

    A binary measure of whether the device is being gripped.

    MenuButton

    Represents a menu button, used to pause, go back, or otherwise exit gameplay.

    Primary2DAxisClick

    Represents the primary 2D axis being clicked or otherwise depressed.

    Primary2DAxisTouch

    Represents the primary 2D axis being touched.

    PrimaryButton

    The primary face button being pressed on a device, or sole button if only one is available.

    PrimaryTouch

    The primary face button being touched on a device.

    Secondary2DAxisClick

    Represents the secondary 2D axis being clicked or otherwise depressed.

    Secondary2DAxisTouch

    Represents the secondary 2D axis being touched.

    SecondaryButton

    The secondary face button being pressed on a device.

    SecondaryTouch

    The secondary face button being touched on a device.

    TriggerButton

    A binary measure of whether the index finger is activating the trigger.

    UserPresence

    Indicates whether the user is present and interacting with the device.

    In This Article
    • Fields
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023