Enum JoyButton
- Namespace
- Godot
- Assembly
- GodotSharp.dll
public enum JoyButton : long
Fields
A = 0Game controller SDL button A. Corresponds to the bottom action button: Sony Cross, Xbox A, Nintendo B.
B = 1Game controller SDL button B. Corresponds to the right action button: Sony Circle, Xbox B, Nintendo A.
Back = 4Game controller SDL back button. Corresponds to the Sony Select, Xbox Back, Nintendo - button.
DpadDown = 12Game controller D-pad down button.
DpadLeft = 13Game controller D-pad left button.
DpadRight = 14Game controller D-pad right button.
DpadUp = 11Game controller D-pad up button.
Guide = 5Game controller SDL guide button. Corresponds to the Sony PS, Xbox Home button.
Invalid = -1An invalid game controller button.
LeftShoulder = 9Game controller SDL left shoulder button. Corresponds to the Sony L1, Xbox LB button.
LeftStick = 7Game controller SDL left stick button. Corresponds to the Sony L3, Xbox L/LS button.
Max = 128The 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 = 15Game controller SDL miscellaneous button. Corresponds to Xbox share button, PS5 microphone button, Nintendo Switch capture button.
Paddle1 = 16Game controller SDL paddle 1 button.
Paddle2 = 17Game controller SDL paddle 2 button.
Paddle3 = 18Game controller SDL paddle 3 button.
Paddle4 = 19Game controller SDL paddle 4 button.
RightShoulder = 10Game controller SDL right shoulder button. Corresponds to the Sony R1, Xbox RB button.
RightStick = 8Game controller SDL right stick button. Corresponds to the Sony R3, Xbox R/RS button.
SdlMax = 21The number of SDL game controller buttons.
Start = 6Game controller SDL start button. Corresponds to the Sony Options, Xbox Menu, Nintendo + button.
Touchpad = 20Game controller SDL touchpad button.
X = 2Game controller SDL button X. Corresponds to the left action button: Sony Square, Xbox X, Nintendo Y.
Y = 3Game controller SDL button Y. Corresponds to the top action button: Sony Triangle, Xbox Y, Nintendo X.