docs.unity3d.com
    Show / Hide Table of Contents

    Enum GamepadButton

    Enum of common gamepad buttons.

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

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

    Fields

    Name Description Value
    DpadUp

    The up button on a gamepad's dpad.


    0
    DpadDown

    The down button on a gamepad's dpad.


    1
    DpadLeft

    The left button on a gamepad's dpad.


    2
    DpadRight

    The right button on a gamepad's dpad.


    3
    Y

    The Y button on an Xbox controller.


    Identical to North, which is the generic name of this button.

    4
    Triangle

    The triangle button on a PlayStation controller.


    Identical to North, which is the generic name of this button.

    4
    North

    The upper action button on a gamepad.


    Identical to Y and Triangle which are the Xbox and PlayStation controller names for this button.

    4
    B

    The B button on an Xbox controller.


    Identical to East, which is the generic name of this button.

    5
    Circle

    The circle button on a PlayStation controller.


    Identical to East, which is the generic name of this button.

    5
    East

    The right action button on a gamepad.


    Identical to B and Circle which are the Xbox and PlayStation controller names for this button.

    5
    South

    The lower action button on a gamepad.


    Identical to A and Cross which are the Xbox and PlayStation controller names for this button.

    6
    A

    The A button on an Xbox controller.


    Identical to South, which is the generic name of this button.

    6
    Cross

    The cross button on a PlayStation controller.


    Identical to South, which is the generic name of this button.

    6
    Square

    The square button on a PlayStation controller.


    Identical to West, which is the generic name of this button.

    7
    West

    The left action button on a gamepad.


    Identical to X and Square which are the Xbox and PlayStation controller names for this button.

    7
    X

    The X button on an Xbox controller.


    Identical to West, which is the generic name of this button.

    7
    LeftStick

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


    8
    RightStick

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


    9
    LeftShoulder

    The left shoulder button on a gamepad.


    10
    RightShoulder

    The right shoulder button on a gamepad.


    11
    Start

    The start button.


    12
    Select

    The select button.


    13
    LeftTrigger

    The left trigger button on a gamepad.


    32
    RightTrigger

    The right trigger button on a gamepad.


    33
    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