GameControlAvatarButton
Semantic buttons (bits of llGetGameControlModeButtons) for the AVATAR, MOUSELOOK, CAPTIVE and CURSOR game control modes. CURSOR_BUTTON_LEFT and CURSOR_BUTTON_RIGHT are only sent in MOUSELOOK and CURSOR. These are flags and can be combined with bitwise OR.
lsl.dev groups these constants itself; the LSL definitions do not have this group yet.
// Otherinteger GAME_CONTROL_BUTTON_JUMP = 0x1; // Jumpinteger GAME_CONTROL_BUTTON_CROUCH = 0x2; // Crouchinteger GAME_CONTROL_BUTTON_SIT = 0x4; // Toggle sitting// GAME_CONTROL_BUTTON_TOGGLE_*integer GAME_CONTROL_BUTTON_TOGGLE_CURSOR = 0x10; // Toggle cursor modeinteger GAME_CONTROL_BUTTON_TOGGLE_SPEAK = 0x20; // Toggle voice speakinteger GAME_CONTROL_BUTTON_TOGGLE_MOUSELOOK = 0x40; // Toggle mouselook modeinteger GAME_CONTROL_BUTTON_TOGGLE_FLYCAM = 0x100; // Toggle flycam mode// GAME_CONTROL_BUTTON_CURSOR_*integer GAME_CONTROL_BUTTON_CURSOR_BUTTON_LEFT = 0x200; // Left mouse button clickinteger GAME_CONTROL_BUTTON_CURSOR_BUTTON_RIGHT = 0x400; // Right mouse button click// GAME_CONTROL_BUTTON_ADVANCE_*integer GAME_CONTROL_BUTTON_ADVANCE_FORWARD = 0x800; // Move forwardinteger GAME_CONTROL_BUTTON_ADVANCE_BACK = 0x1000; // Move backward// GAME_CONTROL_BUTTON_STRAFE_*integer GAME_CONTROL_BUTTON_STRAFE_LEFT = 0x2000; // Strafe leftinteger GAME_CONTROL_BUTTON_STRAFE_RIGHT = 0x4000; // Strafe right
Constants
| Constant | Type | Value | Description |
|---|---|---|---|
GAME_CONTROL_BUTTON_ADVANCE_BACK | integer | 0x1000 | Move backward. Modal button for AVATAR, MOUSELOOK, CAPTIVE, and CURSOR modes. |
GAME_CONTROL_BUTTON_ADVANCE_FORWARD | integer | 0x800 | Move forward. Modal button for AVATAR, MOUSELOOK, CAPTIVE, and CURSOR modes. |
GAME_CONTROL_BUTTON_CROUCH | integer | 0x2 | Crouch. Modal button for AVATAR, MOUSELOOK, CAPTIVE, and CURSOR modes. |
GAME_CONTROL_BUTTON_CURSOR_BUTTON_LEFT | integer | 0x200 | Left mouse button click. Modal button for MOUSELOOK and CURSOR modes. |
GAME_CONTROL_BUTTON_CURSOR_BUTTON_RIGHT | integer | 0x400 | Right mouse button click. Modal button for MOUSELOOK and CURSOR modes. |
GAME_CONTROL_BUTTON_JUMP | integer | 0x1 | Jump. Modal button for AVATAR, MOUSELOOK, CAPTIVE, and CURSOR modes. |
GAME_CONTROL_BUTTON_SIT | integer | 0x4 | Toggle sitting. Modal button for AVATAR, MOUSELOOK, CAPTIVE, and CURSOR modes. |
GAME_CONTROL_BUTTON_STRAFE_LEFT | integer | 0x2000 | Strafe left. Modal button for AVATAR, MOUSELOOK, CAPTIVE, and CURSOR modes. |
GAME_CONTROL_BUTTON_STRAFE_RIGHT | integer | 0x4000 | Strafe right. Modal button for AVATAR, MOUSELOOK, CAPTIVE, and CURSOR modes. |
GAME_CONTROL_BUTTON_TOGGLE_CURSOR | integer | 0x10 | Toggle cursor mode. Modal button for AVATAR, MOUSELOOK, CAPTIVE, and CURSOR modes. |
GAME_CONTROL_BUTTON_TOGGLE_FLYCAM | integer | 0x100 | Toggle flycam mode. Modal button for all modes. |
GAME_CONTROL_BUTTON_TOGGLE_MOUSELOOK | integer | 0x40 | Toggle mouselook mode. Modal button for AVATAR, MOUSELOOK, CAPTIVE, and CURSOR modes. |
GAME_CONTROL_BUTTON_TOGGLE_SPEAK | integer | 0x20 | Toggle voice speak. Modal button for AVATAR, MOUSELOOK, CAPTIVE, and CURSOR modes. |