Skip to content

GamepadButton

1 min read

Import: import system.window;

Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.

GamepadButton

A button on a standard-layout gamepad. The four face buttons are named by position, so South is A on an Xbox controller and Cross on a PlayStation controller.

public enum GamepadButton

South

The bottom face button (Xbox A, PlayStation Cross).

South = 0

East

The right face button (Xbox B, PlayStation Circle).

East = 1

West

The left face button (Xbox X, PlayStation Square).

West = 2

North

The top face button (Xbox Y, PlayStation Triangle).

North = 3

LeftBumper

The left shoulder button.

LeftBumper = 4

RightBumper

The right shoulder button.

RightBumper = 5

Back

The Back, View, Select or Share button.

Back = 6

Start

The Start, Menu or Options button.

Start = 7

Guide

The central logo button. Some browsers and operating systems keep it for themselves.

Guide = 8

LeftThumb

Pressing the left stick.

LeftThumb = 9

RightThumb

Pressing the right stick.

RightThumb = 10

DpadUp

Up on the directional pad.

DpadUp = 11

DpadRight

Right on the directional pad.

DpadRight = 12

DpadDown

Down on the directional pad.

DpadDown = 13

DpadLeft

Left on the directional pad.

DpadLeft = 14