Difference between revisions of "Template:LSL Constants/Controls"

From Second Life Wiki
Jump to navigation Jump to search
m
(Added a note about 0x0200000's effect on llGetAnimation)
 
(3 intermediate revisions by 2 users not shown)
Line 15: Line 15:
{{!}}{{LSL Const|CONTROL_LEFT|integer|4|hex=0x00000004|c=Move left control (Shift-← or Shift-A [← or A in mouselook])}}
{{!}}{{LSL Const|CONTROL_LEFT|integer|4|hex=0x00000004|c=Move left control (Shift-← or Shift-A [← or A in mouselook])}}
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}Move left control ({{Keypress|⇧ Shift}}+{{Keypress|←|title=Left-Arrow key}} or {{Keypress|⇧ Shift}}+{{Keypress|A}} [{{Keypress|←|title=Left-Arrow key}} or {{Keypress|A}} in [[mouselook]]])
{{!}}Move left control ({{KeyCombo|shift=*|←|title=Left-Arrow key}} or {{KeyCombo|shift=*|A}} [{{Keypress|←|title=Left-Arrow key}} or {{Keypress|A}} in [[mouselook]]])
{{!}}-
{{!}}-
{{!}}{{LSL Const|CONTROL_RIGHT|integer|8|hex=0x00000008|c=Move right control  (Shift-→ or Shift-D [→ or D in mouselook])}}
{{!}}{{LSL Const|CONTROL_RIGHT|integer|8|hex=0x00000008|c=Move right control  (Shift-→ or Shift-D [→ or D in mouselook])}}
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}Move right control ({{Keypress|⇧ Shift}}+{{Keypress|→|title=Right-Arrow key}} or {{Keypress|⇧ Shift}}+{{Keypress|D}} [{{Keypress|→|title=Right-Arrow key}} or {{Keypress|D}} in [[mouselook]]])
{{!}}Move right control ({{KeyCombo|shift=*|→|title=Right-Arrow key}} or {{KeyCombo|shift=*|D}} [{{Keypress|→|title=Right-Arrow key}} or {{Keypress|D}} in [[mouselook]]])
{{!}}-
{{!}}-
{{!}}{{LSL Const|CONTROL_ROT_LEFT|integer|256|hex=0x00000100|c=Rotate left control (← or A)}}
{{!}}{{LSL Const|CONTROL_ROT_LEFT|integer|256|hex=0x00000100|c=Rotate left control (← or A)}}
Line 44: Line 44:
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}Left mouse button control while in [[mouselook]]
{{!}}Left mouse button control while in [[mouselook]]
{{!}}-
{{!}}(undocumented)
{{!}}0x02000000
{{!}}Avatar left rotation detected. Triggers [[llGetAnimation]] == "Turning Left"
{{!}}-
{{!}}(undocumented)
{{!}}0x04000000
{{!}}Avatar right rotation detected. Triggers [[llGetAnimation]] == "Turning Right"
{{!}}}
{{!}}}

Latest revision as of 08:41, 11 April 2020

Constant Value Description
CONTROL_FWD 0x00000001 Move forward control ( or W)
CONTROL_BACK 0x00000002 Move back control ( or S)
CONTROL_LEFT 0x00000004 Move left control (⇧ Shift- or ⇧ Shift-A [ or A in mouselook])
CONTROL_RIGHT 0x00000008 Move right control (⇧ Shift- or ⇧ Shift-D [ or D in mouselook])
CONTROL_ROT_LEFT 0x00000100 Rotate left control ( or A)
CONTROL_ROT_RIGHT 0x00000200 Rotate right control ( or D)
CONTROL_UP 0x00000010 Move up control (PgUp or E)
CONTROL_DOWN 0x00000020 Move down control (PgDn or C)
CONTROL_LBUTTON 0x10000000 Left mouse button control
CONTROL_ML_LBUTTON 0x40000000 Left mouse button control while in mouselook
(undocumented) 0x02000000 Avatar left rotation detected. Triggers llGetAnimation == "Turning Left"
(undocumented) 0x04000000 Avatar right rotation detected. Triggers llGetAnimation == "Turning Right"