Gamepad
Explore the functions and events for gamepad. Follow an entry for its parameters, examples, and technical constraints.
Feature: Input
Reference
75 topic entries
integer llGetGameControlMode(key id)functionReturns a GAME_CONTROL_MODE_* integer indicating the current game-control mode for the avatar specified by id.
list llGetGameControlModeAxes(key id)functionReturns a list of floats representing the modal axes for the current game-control mode of the avatar specified by id. Element count and index meanings vary by mode; use the GAME_CONTROL_AXIS_* constants as indices.
integer llGetGameControlModeButtons(key id)functionReturns a bitmask of the modal buttons currently active for the current game-control mode of the avatar specified by id. Bit meanings vary by mode; use the GAME_CONTROL_BUTTON_* constants as masks.
game_control(key id, integer button_levels, list axes)eventTriggered when a compatible viewer sends game controller input changes for the avatar specified by id. Only triggers for scripts in attachments or seats.
integer GAME_CONTROL_AXIS_ADVANCE = 1constantForward/backward movement. Modal axis index 1 for AVATAR, MOUSELOOK, and CAPTIVE modes.
integer GAME_CONTROL_AXIS_BOOM = 4constantCamera up/down movement. Modal axis index 4 for FLYCAM mode.
integer GAME_CONTROL_AXIS_DOLLY = 1constantCamera forward/backward movement. Modal axis index 1 for FLYCAM mode.
integer GAME_CONTROL_AXIS_LEFTX = 0constantLeft stick X axis. Canonical axis index 0.
integer GAME_CONTROL_AXIS_LEFTY = 1constantLeft stick Y axis. Canonical axis index 1.
integer GAME_CONTROL_AXIS_LEFT_TRIGGER = 4constantLeft trigger. Canonical axis index 4.
integer GAME_CONTROL_AXIS_LOOK = 3constantLooking up/down. Modal axis index 3 for AVATAR, MOUSELOOK, CAPTIVE, and CURSOR modes.
integer GAME_CONTROL_AXIS_PAN = 2constantCamera pan left/right. Modal axis index 2 for FLYCAM mode.
integer GAME_CONTROL_AXIS_RIGHTX = 2constantRight stick X axis. Canonical axis index 2.
integer GAME_CONTROL_AXIS_RIGHTY = 3constantRight stick Y axis. Canonical axis index 3.
integer GAME_CONTROL_AXIS_RIGHT_TRIGGER = 5constantRight trigger. Canonical axis index 5.
integer GAME_CONTROL_AXIS_RISE = 4constantUp/down movement. Modal axis index 4 for AVATAR, MOUSELOOK, and CAPTIVE modes.
integer GAME_CONTROL_AXIS_ROLL = 5constantCamera roll. Modal axis index 5 for FLYCAM mode.
integer GAME_CONTROL_AXIS_STRAFE = 0constantLeft/right movement. Modal axis index 0 for AVATAR, MOUSELOOK, and CAPTIVE modes.
integer GAME_CONTROL_AXIS_TILT = 3constantCamera tilt up/down. Modal axis index 3 for FLYCAM mode.
integer GAME_CONTROL_AXIS_TRUCK = 0constantCamera lateral (left/right) movement. Modal axis index 0 for FLYCAM mode.
integer GAME_CONTROL_AXIS_TURN = 2constantTurning left/right. Modal axis index 2 for AVATAR, MOUSELOOK, CAPTIVE, and CURSOR modes.
integer GAME_CONTROL_AXIS_ZOOM = 6constantCamera zoom in/out. Modal axis index 6 for AVATAR, MOUSELOOK, CAPTIVE, and FLYCAM modes.
integer GAME_CONTROL_BUTTON_ADVANCE_BACK = 0x1000constantMove backward. Modal button for AVATAR, MOUSELOOK, CAPTIVE, and CURSOR modes.
integer GAME_CONTROL_BUTTON_ADVANCE_FORWARD = 0x800constantMove forward. Modal button for AVATAR, MOUSELOOK, CAPTIVE, and CURSOR modes.
integer GAME_CONTROL_BUTTON_CROUCH = 0x2constantCrouch. Modal button for AVATAR, MOUSELOOK, CAPTIVE, and CURSOR modes.
integer GAME_CONTROL_BUTTON_CURSOR_BUTTON_LEFT = 0x200constantLeft mouse button click. Modal button for MOUSELOOK and CURSOR modes.
integer GAME_CONTROL_BUTTON_CURSOR_BUTTON_RIGHT = 0x400constantRight mouse button click. Modal button for MOUSELOOK and CURSOR modes.
integer GAME_CONTROL_BUTTON_DOLLY_BACK = 0x1000constantCamera dolly backward. Modal button for FLYCAM mode.
integer GAME_CONTROL_BUTTON_DOLLY_FORWARD = 0x800constantCamera dolly forward. Modal button for FLYCAM mode.
integer GAME_CONTROL_BUTTON_DPAD_DOWN = 0x1000constantD-pad down.
integer GAME_CONTROL_BUTTON_DPAD_LEFT = 0x2000constantD-pad left.
integer GAME_CONTROL_BUTTON_DPAD_RIGHT = 0x4000constantD-pad right.
integer GAME_CONTROL_BUTTON_DPAD_UP = 0x800constantD-pad up.
integer GAME_CONTROL_BUTTON_EAST = 0x2constantRight face button.
integer GAME_CONTROL_BUTTON_HOME = 0x20constantHome/guide button.
integer GAME_CONTROL_BUTTON_JUMP = 0x1constantJump. Modal button for AVATAR, MOUSELOOK, CAPTIVE, and CURSOR modes.
integer GAME_CONTROL_BUTTON_LEFTSHOULDER = 0x200constantLeft shoulder/bumper button.
integer GAME_CONTROL_BUTTON_LEFTSTICK = 0x80constantLeft analog stick click.
integer GAME_CONTROL_BUTTON_MISC1 = 0x8000constantMiscellaneous button 1.
integer GAME_CONTROL_BUTTON_NORTH = 0x8constantTop face button.
integer GAME_CONTROL_BUTTON_PADDLE1 = 0x10000constantPaddle button 1.
integer GAME_CONTROL_BUTTON_PADDLE2 = 0x20000constantPaddle button 2.
integer GAME_CONTROL_BUTTON_PADDLE3 = 0x40000constantPaddle button 3.
integer GAME_CONTROL_BUTTON_PADDLE4 = 0x80000constantPaddle button 4.
integer GAME_CONTROL_BUTTON_PAN_LEFT = 0x4constantCamera pan left. Modal button for FLYCAM mode.
integer GAME_CONTROL_BUTTON_PAN_RIGHT = 0x2constantCamera pan right. Modal button for FLYCAM mode.
integer GAME_CONTROL_BUTTON_RESET = 0x80constantReset camera to default view. Modal button for FLYCAM mode.
integer GAME_CONTROL_BUTTON_RIGHTSHOULDER = 0x400constantRight shoulder/bumper button.
integer GAME_CONTROL_BUTTON_RIGHTSTICK = 0x100constantRight analog stick click.
integer GAME_CONTROL_BUTTON_ROLL_CCW = 0x200constantRoll camera counter-clockwise. Modal button for FLYCAM mode.
integer GAME_CONTROL_BUTTON_ROLL_CW = 0x400constantRoll camera clockwise. Modal button for FLYCAM mode.
integer GAME_CONTROL_BUTTON_SELECT = 0x10constantSelect/back button.
integer GAME_CONTROL_BUTTON_SIT = 0x4constantToggle sitting. Modal button for AVATAR, MOUSELOOK, CAPTIVE, and CURSOR modes.
integer GAME_CONTROL_BUTTON_SOUTH = 0x1constantBottom face button.
integer GAME_CONTROL_BUTTON_START = 0x40constantStart/menu button.
integer GAME_CONTROL_BUTTON_STRAFE_LEFT = 0x2000constantStrafe left. Modal button for AVATAR, MOUSELOOK, CAPTIVE, and CURSOR modes.
integer GAME_CONTROL_BUTTON_STRAFE_RIGHT = 0x4000constantStrafe right. Modal button for AVATAR, MOUSELOOK, CAPTIVE, and CURSOR modes.
integer GAME_CONTROL_BUTTON_TOGGLE_ALT_ZOOM = 0x10constantToggle alt-zoom. Modal button for FLYCAM mode.
integer GAME_CONTROL_BUTTON_TOGGLE_CURSOR = 0x10constantToggle cursor mode. Modal button for AVATAR, MOUSELOOK, CAPTIVE, and CURSOR modes.
integer GAME_CONTROL_BUTTON_TOGGLE_FLYCAM = 0x100constantToggle flycam mode. Modal button for all modes.
integer GAME_CONTROL_BUTTON_TOGGLE_FOLLOW = 0x40constantToggle camera follow mode. Modal button for FLYCAM mode.
integer GAME_CONTROL_BUTTON_TOGGLE_MOUSELOOK = 0x40constantToggle mouselook mode. Modal button for AVATAR, MOUSELOOK, CAPTIVE, and CURSOR modes.
integer GAME_CONTROL_BUTTON_TOGGLE_SPEAK = 0x20constantToggle voice speak. Modal button for AVATAR, MOUSELOOK, CAPTIVE, and CURSOR modes.
integer GAME_CONTROL_BUTTON_TOUCHPAD = 0x100000constantTouchpad click.
integer GAME_CONTROL_BUTTON_TRUCK_LEFT = 0x2000constantCamera truck left. Modal button for FLYCAM mode.
integer GAME_CONTROL_BUTTON_TRUCK_RIGHT = 0x4000constantCamera truck right. Modal button for FLYCAM mode.
integer GAME_CONTROL_BUTTON_WEST = 0x4constantLeft face button.
integer GAME_CONTROL_BUTTON_ZOOM_IN = 0x8constantZoom camera in. Modal button for FLYCAM mode.
integer GAME_CONTROL_BUTTON_ZOOM_OUT = 0x1constantZoom camera out. Modal button for FLYCAM mode.
integer GAME_CONTROL_MODE_AVATAR = 0constantinteger GAME_CONTROL_MODE_CAPTIVE = 3constantinteger GAME_CONTROL_MODE_CURSOR = 4constantinteger GAME_CONTROL_MODE_FLYCAM = 2constantinteger GAME_CONTROL_MODE_MOUSELOOK = 1constantinteger PERMISSION_GAME_CONTROL = 0x100000constant
No matching entries. Try a different term or filter.