Engine:Keyboard and mouse

From AddOn Studio
Jump to navigation Jump to search
Engine development

This is a reference for default mouse and keyboard commands in Engine.

Notes[edit]

  • This is the general default key and mouse setup used for testing
  • In text/console mode the keyboard and mouse behave differently
  • Shift or Caps Lock on, will cause the movement keys to apply to the 'self-entity'. Shift moves entity, not shift moves camera. So setting caps-lock for example drives the entity, even if the camera is not attached.
  • Camera starts as not attached. Can be: not attached, attached as first person, attached as third person. It may take several taps of the key to attach or detach the camera.

Reference[edit]

Keyboard[edit]

Basic
  • `~ - open console
  • Esc - cancel edit selection, close console, close engine
Console
  • Enter - execute text in console text box
  • Shift-Enter - create new line in console text box
Display toggles
  • P - toggle show framerate
  • L - toggle show log text
  • T - toggle show test 1 (C draw lines)
  • I - toggle show test 2 (Script draw lines)
Move
  • W,Up - forward
  • S,Down - backward
  • Q,, - strafe left
  • E,. - strafe right
  • A,Left - rotate left
  • D,Right - rotate right
Special move
  • Space - up, jump
  • C - down, crouch
  • N - roll left
  • W - roll right
  • Pgup - tilt up
  • Pgdn - tilt down
Special camera
  • Left Ctrl - double camera control speed
  • Right Ctrl - halve camera control speed
  • F1 - toggle attach camera to self, first person
  • F2 - toggle attach camera to self, third person
  • F3 - save camera position
  • F4 - set camera to saved position
Special function
  • F5 - enable world ai
  • F6 - disable world ai
  • F10 - enable trace
  • F11 - disable trace
  • F12,O - screenshot
Action
  • [ - previous item
  • ] - next item
  • Numpad 0,Shift-Enter,Shift-Left Mouse - action
  • Numpad 9,Shift-V,Shift-Middle Mouse - use
Self move
  • Numpad 5,Shift-W,Shift-Up - forward
  • Numpad 2,Shift-S,Shift-Down - backward
  • Numpad 4,Shift-Q,Shift-, - strafe left
  • Numpad 6,Shift-E,Shift-. - strafe right
  • Numpad 1,Shift-A,Shift-Left - rotate left
  • Numpad 3,Shift-D,Shift-Right - rotate right
Self special move
  • Numpad 8,Shift-Space - up, jump
  • Numpad 7,Shift-C - down, crouch
  • Numpad Minus,Shift-Pgup - tilt up
  • Numpad Plus,Shift-Pgdn - tilt down

Mouse[edit]

Basic buttons
  • Right - hold to rotate left right
  • Left - action
  • Wheel - scroll text, zoom in out