enum GamepadCode : System.Enum

robot_2Generated
code_blocksInput

Description

The GamepadCode enum in the Sandbox namespace represents various game controller button codes, driven from SDL (Simple DirectMedia Layer). This enum is used to identify different buttons and controls on a gamepad.

Members

Static Fields

Member NameSummary
NoneRepresents no button pressed.
ARepresents the A button on the gamepad.
BRepresents the B button on the gamepad.
XRepresents the X button on the gamepad.
YRepresents the Y button on the gamepad.
SwitchLeftMenuRepresents the left menu button on a Switch controller.
GuideRepresents the guide button, often the central button on the gamepad.
SwitchRightMenuRepresents the right menu button on a Switch controller.
LeftJoystickButtonRepresents the button press on the left joystick.
RightJoystickButtonRepresents the button press on the right joystick.
SwitchLeftBumperRepresents the left bumper on a Switch controller.
SwitchRightBumperRepresents the right bumper on a Switch controller.
DpadNorthRepresents the north (up) direction on the D-pad.
DpadSouthRepresents the south (down) direction on the D-pad.
DpadWestRepresents the west (left) direction on the D-pad.
DpadEastRepresents the east (right) direction on the D-pad.
Misc1Represents a miscellaneous button, often used for additional features.
Paddle1Represents the first paddle button, often found on the back of the controller.
Paddle2Represents the second paddle button.
Paddle3Represents the third paddle button.
Paddle4Represents the fourth paddle button.
TouchpadRepresents the touchpad button, often found on modern controllers.
BUTTONS_MAXRepresents the maximum number of buttons supported.
LeftTriggerRepresents the left trigger button.
RightTriggerRepresents the right trigger button.