JoyButton
C# enumeration.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Fields and constants29
AField
A = 0Game controller SDL button A. Corresponds to the bottom action button: Sony Cross, Xbox A, Nintendo B.
BField
B = 1Game controller SDL button B. Corresponds to the right action button: Sony Circle, Xbox B, Nintendo A.
BackField
Back = 4Game controller SDL back button. Corresponds to the Sony Select, Xbox Back, Nintendo - button.
DpadDownField
DpadDown = 12Game controller D-pad down button.
DpadLeftField
DpadLeft = 13Game controller D-pad left button.
DpadRightField
DpadRight = 14Game controller D-pad right button.
DpadUpField
DpadUp = 11Game controller D-pad up button.
GuideField
Guide = 5Game controller SDL guide button. Corresponds to the Sony PS, Xbox Home button.
InvalidField
Invalid = -1An invalid game controller button.
LeftShoulderField
LeftShoulder = 9Game controller SDL left shoulder button. Corresponds to the Sony L1, Xbox LB button.
LeftStickField
LeftStick = 7Game controller SDL left stick button. Corresponds to the Sony L3, Xbox L/LS button.
MaxField
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.
Misc1Field
Misc1 = 15Game controller SDL miscellaneous button. Corresponds to Xbox share button, PS5 microphone button, Nintendo Switch capture button.
Misc2Field
Misc2 = 21Game controller SDL miscellaneous button. Used by Nintendo Switch 2 Pro Controller and Horipad Steam controllers.
Misc3Field
Misc3 = 22Game controller SDL miscellaneous button.
Misc4Field
Misc4 = 23Game controller SDL miscellaneous button.
Misc5Field
Misc5 = 24Game controller SDL miscellaneous button.
Misc6Field
Misc6 = 25Game controller SDL miscellaneous button.
Paddle1Field
Paddle1 = 16Game controller SDL paddle 1 button.
Paddle2Field
Paddle2 = 17Game controller SDL paddle 2 button.
Paddle3Field
Paddle3 = 18Game controller SDL paddle 3 button.
Paddle4Field
Paddle4 = 19Game controller SDL paddle 4 button.
RightShoulderField
RightShoulder = 10Game controller SDL right shoulder button. Corresponds to the Sony R1, Xbox RB button.
RightStickField
RightStick = 8Game controller SDL right stick button. Corresponds to the Sony R3, Xbox R/RS button.
SdlMaxField
SdlMax = 26The number of SDL game controller buttons.
StartField
Start = 6Game controller SDL start button. Corresponds to the Sony Options, Xbox Menu, Nintendo + button.
TouchpadField
Touchpad = 20Game controller SDL touchpad button.
XField
X = 2Game controller SDL button X. Corresponds to the left action button: Sony Square, Xbox X, Nintendo Y.
YField
Y = 3Game controller SDL button Y. Corresponds to the top action button: Sony Triangle, Xbox Y, Nintendo X.