docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum InputHelpers.Button

    A list of buttons that can be bound to.

    Namespace: UnityEngine.XR.Interaction.Toolkit
    Assembly: Unity.XR.Interaction.Toolkit.dll
    Syntax
    public enum InputHelpers.Button

    Fields

    Name Description
    Grip

    Represents the user's grip on the controller.

    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.

    None

    Represents and invalid button.

    Primary2DAxisClick

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

    Primary2DAxisTouch

    Represents the primary 2D axis being touched.

    PrimaryAxis2DDown

    Represents a downwards motion on the primary touchpad or joystick on a device.

    PrimaryAxis2DLeft

    Represents a leftwards motion on the primary touchpad or joystick on a device.

    PrimaryAxis2DRight

    Represents a rightwards motion on the primary touchpad or joystick on a device.

    PrimaryAxis2DUp

    Represents an upwards motion on the primary touchpad or joystick on a device.

    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 primary 2D axis being touched.

    SecondaryAxis2DDown

    Represents a downwards motion on the secondary touchpad or joystick on a device.

    SecondaryAxis2DLeft

    Represents a leftwards motion on the secondary touchpad or joystick on a device.

    SecondaryAxis2DRight

    Represents a rightwards motion on the secondary touchpad or joystick on a device.

    SecondaryAxis2DUp

    Represents an upwards motion on the secondary touchpad or joystick on a device.

    SecondaryButton

    The secondary face button being pressed on a device.

    SecondaryTouch

    The secondary face button being touched on a device.

    Trigger

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

    TriggerButton

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

    In This Article
    Back to top
    Copyright © 2024 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)