Skip to content

GameControlAvatarAxis

Semantic axes (indices into llGetGameControlModeAxes) for the AVATAR, MOUSELOOK and CAPTIVE game control modes. CURSOR mode has its own axes.

lsl.dev groups these constants itself; the LSL definitions do not have this group yet.

All constant groups

At a glance
integer GAME_CONTROL_AXIS_STRAFE = 0;  // Left/right movementinteger GAME_CONTROL_AXIS_ADVANCE = 1;  // Forward/backward movementinteger GAME_CONTROL_AXIS_TURN = 2;  // Turning left/rightinteger GAME_CONTROL_AXIS_LOOK = 3;  // Looking up/downinteger GAME_CONTROL_AXIS_RISE = 4;  // Up/down movement

Constants

ConstantTypeValueDescription
GAME_CONTROL_AXIS_ADVANCEinteger1Forward/backward movement. Modal axis index 1 for AVATAR, MOUSELOOK, and CAPTIVE modes.
GAME_CONTROL_AXIS_LOOKinteger3Looking up/down. Modal axis index 3 for AVATAR, MOUSELOOK, CAPTIVE, and CURSOR modes.
GAME_CONTROL_AXIS_RISEinteger4Up/down movement. Modal axis index 4 for AVATAR, MOUSELOOK, and CAPTIVE modes.
GAME_CONTROL_AXIS_STRAFEinteger0Left/right movement. Modal axis index 0 for AVATAR, MOUSELOOK, and CAPTIVE modes.
GAME_CONTROL_AXIS_TURNinteger2Turning left/right. Modal axis index 2 for AVATAR, MOUSELOOK, CAPTIVE, and CURSOR modes.