Atlas Engine
API Referenceatlas

ControllerButton

Standard gamepad button identifiers.

Module: atlas

Standard gamepad button identifiers.

Declaration

export enum ControllerButton {
        /**
         * Identifies the a gamepad button.
         */
        A = 0,
        /**
         * Identifies the b gamepad button.
         */
        B,
        /**
         * Identifies the X gamepad button.
         */
        X,
        /**
         * Identifies the Y gamepad button.
         */
        Y,
        /**
         * Identifies the left bumper gamepad button.
         */
        LeftBumper,
        /**
         * Identifies the right bumper gamepad button.
         */
        RightBumper,
        /**
         * Identifies the back gamepad button.
         */
        Back,
        /**
         * Identifies the start gamepad button.
         */
        Start,
        /**
         * Identifies the guide gamepad button.
         */
        Guide,
        /**
         * Identifies the left thumb gamepad button.
         */
        LeftThumb,
        /**
         * Identifies the right thumb gamepad button.
         */
        RightThumb,
        /**
         * Identifies the d pad up gamepad button.
         */
        DPadUp,
        /**
         * Identifies the d pad right gamepad button.
         */
        DPadRight,
        /**
         * Identifies the d pad down gamepad button.
         */
        DPadDown,
        /**
         * Identifies the d pad left gamepad button.
         */
        DPadLeft,
        /**
         * Identifies the button count gamepad button.
         */
        ButtonCount,
    }

Values

A

Identifies the a gamepad button.

A = 0

B

Identifies the b gamepad button.

B

X

Identifies the X gamepad button.

X

Y

Identifies the Y gamepad button.

Y

LeftBumper

Identifies the left bumper gamepad button.

LeftBumper

RightBumper

Identifies the right bumper gamepad button.

RightBumper

Back

Identifies the back gamepad button.

Back

Start

Identifies the start gamepad button.

Start

Guide

Identifies the guide gamepad button.

Guide

LeftThumb

Identifies the left thumb gamepad button.

LeftThumb

RightThumb

Identifies the right thumb gamepad button.

RightThumb

DPadUp

Identifies the d pad up gamepad button.

DPadUp

DPadRight

Identifies the d pad right gamepad button.

DPadRight

DPadDown

Identifies the d pad down gamepad button.

DPadDown

DPadLeft

Identifies the d pad left gamepad button.

DPadLeft

ButtonCount

Identifies the button count gamepad button.

ButtonCount

On this page