docs.unity3d.com
    Show / Hide Table of Contents

    Enum GamepadButton

    Enum of common gamepad buttons.

    Namespace: UnityEngine.InputSystem.LowLevel
    Syntax
    public enum GamepadButton : int
    Remarks

    Can be used as an array indexer on the Gamepad class to get individual button controls.

    Fields

    Name Description Value
    A

    The A button on an Xbox controller.

    West

    The left action button on a gamepad.

    Triangle

    The triangle button on a PlayStation controller.

    Start

    The start button.

    Square

    The square button on a PlayStation controller.

    South

    The lower action button on a gamepad.

    Select

    The select button.

    RightTrigger

    The right trigger button on a gamepad.

    RightStick

    The button pressed by pressing down the right stick on a gamepad.

    RightShoulder

    The right shoulder button on a gamepad.

    North

    The upper action button on a gamepad.

    LeftTrigger

    The left trigger button on a gamepad.

    LeftStick

    The button pressed by pressing down the left stick on a gamepad.

    LeftShoulder

    The left shoulder button on a gamepad.

    East

    The right action button on a gamepad.

    DpadUp

    The up button on a gamepad's dpad.

    DpadRight

    The right button on a gamepad's dpad.

    DpadLeft

    The left button on a gamepad's dpad.

    DpadDown

    The down button on a gamepad's dpad.

    Cross

    The cross button on a PlayStation controller.

    Circle

    The circle button on a PlayStation controller.

    B

    The B button on an Xbox controller.

    X

    The X button on an Xbox controller.

    Y

    The Y button on an Xbox controller.

    In This Article
    • Fields
    Back to top
    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