Skip to content
lsl.devlsl.devLSL Dev

GameControlButton

Constants in the GameControlButton flag set. These are flags and can be combined with bitwise OR.

All constant groups

At a glance, from the LSL definitions
integer GAME_CONTROL_BUTTON_DPAD_DOWN = 0x1000;  // D-pad down.integer GAME_CONTROL_BUTTON_DPAD_LEFT = 0x2000;  // D-pad left.integer GAME_CONTROL_BUTTON_DPAD_RIGHT = 0x4000;  // D-pad right.integer GAME_CONTROL_BUTTON_DPAD_UP = 0x800;  // D-pad up.integer GAME_CONTROL_BUTTON_EAST = 0x2;  // Right face button.integer GAME_CONTROL_BUTTON_HOME = 0x20;  // Home/guide button.integer GAME_CONTROL_BUTTON_LEFTSHOULDER = 0x200;  // Left shoulder/bumper button.integer GAME_CONTROL_BUTTON_LEFTSTICK = 0x80;  // Left analog stick click.integer GAME_CONTROL_BUTTON_MISC1 = 0x8000;  // Miscellaneous button 1.integer GAME_CONTROL_BUTTON_NORTH = 0x8;  // Top face button.integer GAME_CONTROL_BUTTON_PADDLE1 = 0x10000;  // Paddle button 1.integer GAME_CONTROL_BUTTON_PADDLE2 = 0x20000;  // Paddle button 2.integer GAME_CONTROL_BUTTON_PADDLE3 = 0x40000;  // Paddle button 3.integer GAME_CONTROL_BUTTON_PADDLE4 = 0x80000;  // Paddle button 4.integer GAME_CONTROL_BUTTON_RIGHTSHOULDER = 0x400;  // Right shoulder/bumper button.integer GAME_CONTROL_BUTTON_RIGHTSTICK = 0x100;  // Right analog stick click.integer GAME_CONTROL_BUTTON_SELECT = 0x10;  // Select/back button.integer GAME_CONTROL_BUTTON_SOUTH = 0x1;  // Bottom face button.integer GAME_CONTROL_BUTTON_START = 0x40;  // Start/menu button.integer GAME_CONTROL_BUTTON_TOUCHPAD = 0x100000;  // Touchpad click.integer GAME_CONTROL_BUTTON_WEST = 0x4;  // Left face button.

Constants

ConstantTypeValueDescription
GAME_CONTROL_BUTTON_DPAD_DOWNinteger0x1000D-pad down.
GAME_CONTROL_BUTTON_DPAD_LEFTinteger0x2000D-pad left.
GAME_CONTROL_BUTTON_DPAD_RIGHTinteger0x4000D-pad right.
GAME_CONTROL_BUTTON_DPAD_UPinteger0x800D-pad up.
GAME_CONTROL_BUTTON_EASTinteger0x2Right face button.
GAME_CONTROL_BUTTON_HOMEinteger0x20Home/guide button.
GAME_CONTROL_BUTTON_LEFTSHOULDERinteger0x200Left shoulder/bumper button.
GAME_CONTROL_BUTTON_LEFTSTICKinteger0x80Left analog stick click.
GAME_CONTROL_BUTTON_MISC1integer0x8000Miscellaneous button 1.
GAME_CONTROL_BUTTON_NORTHinteger0x8Top face button.
GAME_CONTROL_BUTTON_PADDLE1integer0x10000Paddle button 1.
GAME_CONTROL_BUTTON_PADDLE2integer0x20000Paddle button 2.
GAME_CONTROL_BUTTON_PADDLE3integer0x40000Paddle button 3.
GAME_CONTROL_BUTTON_PADDLE4integer0x80000Paddle button 4.
GAME_CONTROL_BUTTON_RIGHTSHOULDERinteger0x400Right shoulder/bumper button.
GAME_CONTROL_BUTTON_RIGHTSTICKinteger0x100Right analog stick click.
GAME_CONTROL_BUTTON_SELECTinteger0x10Select/back button.
GAME_CONTROL_BUTTON_SOUTHinteger0x1Bottom face button.
GAME_CONTROL_BUTTON_STARTinteger0x40Start/menu button.
GAME_CONTROL_BUTTON_TOUCHPADinteger0x100000Touchpad click.
GAME_CONTROL_BUTTON_WESTinteger0x4Left face button.