ControlButton
Constants in the ControlButton flag set. These are flags and can be combined with bitwise OR.
integer CONTROL_BACK = 0x2; // Tests for the avatar move back control (↓ or S).integer CONTROL_DOWN = 0x20; // Tests for the avatar move down control (PgDn or C).integer CONTROL_FWD = 0x1; // Tests for the avatar move forward control (↑ or W).integer CONTROL_LBUTTON = 0x10000000; // Tests for the avatar left mouse button control.integer CONTROL_LEFT = 0x4; // Tests for the avatar move left control (Shift + ← or Shift + A).integer CONTROL_ML_LBUTTON = 0x40000000; // Tests for the avatar left mouse button control while in mouselook.integer CONTROL_RIGHT = 0x8; // Tests for the avatar move right control (Shift + → or Shift + D).integer CONTROL_ROT_LEFT = 0x100; // Tests for the avatar rotate left control (← or A).integer CONTROL_ROT_RIGHT = 0x200; // Tests for the avatar rotate right control (→ or D).integer CONTROL_UP = 0x10; // Tests for the avatar move up control (PgUp or E).
Constants
| Constant | Type | Value | Description |
|---|---|---|---|
CONTROL_BACK | integer | 0x2 | Tests for the avatar move back control (↓ or S). |
CONTROL_DOWN | integer | 0x20 | Tests for the avatar move down control (PgDn or C). |
CONTROL_FWD | integer | 0x1 | Tests for the avatar move forward control (↑ or W). |
CONTROL_LBUTTON | integer | 0x10000000 | Tests for the avatar left mouse button control. |
CONTROL_LEFT | integer | 0x4 | Tests for the avatar move left control (Shift + ← or Shift + A). |
CONTROL_ML_LBUTTON | integer | 0x40000000 | Tests for the avatar left mouse button control while in mouselook. |
CONTROL_RIGHT | integer | 0x8 | Tests for the avatar move right control (Shift + → or Shift + D). |
CONTROL_ROT_LEFT | integer | 0x100 | Tests for the avatar rotate left control (← or A). |
CONTROL_ROT_RIGHT | integer | 0x200 | Tests for the avatar rotate right control (→ or D). |
CONTROL_UP | integer | 0x10 | Tests for the avatar move up control (PgUp or E). |
Used by
llTakeControlsfunctionIntercepts inputs (keyboard/mouse clicks) from the agent, specifically those specified by controls. The boolean accept determines if events are generated, and pass_on determines if inputs also perform their default functions. Requires the PERMISSION_TAKE_CONTROLS runtime permission.