Table of Contents

Enum JoyButton

Namespace
Godot
Assembly
GodotSharp.dll
public enum JoyButton : long

Fields

A = 0

Game controller SDL button A. Corresponds to the bottom action button: Sony Cross, Xbox A, Nintendo B.

B = 1

Game controller SDL button B. Corresponds to the right action button: Sony Circle, Xbox B, Nintendo A.

Back = 4

Game controller SDL back button. Corresponds to the Sony Select, Xbox Back, Nintendo - button.

DpadDown = 12

Game controller D-pad down button.

DpadLeft = 13

Game controller D-pad left button.

DpadRight = 14

Game controller D-pad right button.

DpadUp = 11

Game controller D-pad up button.

Guide = 5

Game controller SDL guide button. Corresponds to the Sony PS, Xbox Home button.

Invalid = -1

An invalid game controller button.

LeftShoulder = 9

Game controller SDL left shoulder button. Corresponds to the Sony L1, Xbox LB button.

LeftStick = 7

Game controller SDL left stick button. Corresponds to the Sony L3, Xbox L/LS button.

Max = 128

The maximum number of game controller buttons supported by the engine. The actual limit may be lower on specific platforms:

- Android: Up to 36 buttons.

- Linux: Up to 80 buttons.

- Windows and macOS: Up to 128 buttons.

Misc1 = 15

Game controller SDL miscellaneous button. Corresponds to Xbox share button, PS5 microphone button, Nintendo Switch capture button.

Paddle1 = 16

Game controller SDL paddle 1 button.

Paddle2 = 17

Game controller SDL paddle 2 button.

Paddle3 = 18

Game controller SDL paddle 3 button.

Paddle4 = 19

Game controller SDL paddle 4 button.

RightShoulder = 10

Game controller SDL right shoulder button. Corresponds to the Sony R1, Xbox RB button.

RightStick = 8

Game controller SDL right stick button. Corresponds to the Sony R3, Xbox R/RS button.

SdlMax = 21

The number of SDL game controller buttons.

Start = 6

Game controller SDL start button. Corresponds to the Sony Options, Xbox Menu, Nintendo + button.

Touchpad = 20

Game controller SDL touchpad button.

X = 2

Game controller SDL button X. Corresponds to the left action button: Sony Square, Xbox X, Nintendo Y.

Y = 3

Game controller SDL button Y. Corresponds to the top action button: Sony Triangle, Xbox Y, Nintendo X.