Engine:Keyboard and mouse: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 5: Line 5:
* This is the general default key and mouse setup used for testing
* This is the general default key and mouse setup used for testing
* In text/console mode the keyboard and mouse behave differently
* In text/console mode the keyboard and mouse behave differently
* <code>Shift</code> or <code>Caps Lock</code> 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 ==
== Reference ==
Line 35: Line 37:
* <code>N</code> - roll left
* <code>N</code> - roll left
* <code>W</code> - roll right
* <code>W</code> - roll right
* <code>Pgup</code> - tilt up
* <code>Pgdn</code> - tilt down


; Special camera
; Special camera
Line 55: Line 59:
* <code>[</code> - previous item
* <code>[</code> - previous item
* <code>]</code> - next item
* <code>]</code> - next item
* <code>Enter</code>,<code>Left Mouse</code> - action
* <code>Numpad 0</code>,<code>Shift-Enter</code>,<code>Shift-Left Mouse</code> - action
* <code>Numpad 9</code>,<code>Shift-V</code>,<code>Shift-Middle Mouse</code> - use


; Non-camera move
; Self move
* <code>Numpad 5</code>,<code>Shift-W</code>,<code>Shift-Up</code> - forward
* <code>Numpad 2</code>,<code>Shift-S</code>,<code>Shift-Down</code> - backward
* <code>Numpad 4</code>,<code>Shift-Q</code>,<code>Shift-,</code> - strafe left
* <code>Numpad 6</code>,<code>Shift-E</code>,<code>Shift-.</code> - strafe right
* <code>Numpad 1</code>,<code>Shift-A</code>,<code>Shift-Left</code> - rotate left
* <code>Numpad 3</code>,<code>Shift-D</code>,<code>Shift-Right</code> - rotate right
 
; Self special move
* <code>Numpad 8</code>,<code>Shift-Space</code> - up, jump
* <code>Numpad 7</code>,<code>Shift-C</code> - down, crouch
* <code>Numpad Minus</code>,<code>Shift-Pgup</code> - tilt up
* <code>Numpad Plus</code>,<code>Shift-Pgdn</code> - tilt down


=== Mouse ===
=== Mouse ===

Latest revision as of 05:13, 18 November 2023

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