Engine:Keyboard and mouse: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
 
(26 intermediate revisions by the same user not shown)
Line 3: Line 3:


== Notes ==
== Notes ==
=== Key ===
* This is the general default key and mouse setup used for testing
* 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 9: Line 12:
; Basic
; Basic
* <code>`~</code> - open console
* <code>`~</code> - open console
* <code>Esc</code> - cancel editor selection, close console, close engine
* <code>Esc</code> - cancel edit selection, close console, close engine
 
; Console
* <code>Enter</code> - execute text in console text box
* <code>Shift-Enter</code> - create new line in console text box
 
; Display toggles
* <code>P</code> - toggle show framerate
* <code>L</code> - toggle show log text
* <code>T</code> - toggle show test 1 (C draw lines)
* <code>I</code> - toggle show test 2 (Script draw lines)
 
; Move
* <code>W</code>,<code>Up</code> - forward
* <code>S</code>,<code>Down</code> - backward
* <code>Q</code>,<code>,</code> - strafe left
* <code>E</code>,<code>.</code> - strafe right
* <code>A</code>,<code>Left</code> - rotate left
* <code>D</code>,<code>Right</code> - rotate right
 
; Special move
* <code>Space</code> - up, jump
* <code>C</code> - down, crouch
* <code>N</code> - roll left
* <code>W</code> - roll right
* <code>Pgup</code> - tilt up
* <code>Pgdn</code> - tilt down
 
; Special camera
* <code>Left Ctrl</code> - double camera control speed
* <code>Right Ctrl</code> - halve camera control speed
 
* <code>F1</code> - toggle attach camera to self, first person
* <code>F2</code> - toggle attach camera to self, third person
* <code>F3</code> - save camera position
* <code>F4</code> - set camera to saved position
 
; Special function
* <code>F5</code> - enable world ai
* <code>F6</code> - disable world ai
* <code>F10</code> - enable trace
* <code>F11</code> - disable trace
* <code>F12</code>,<code>O</code> - screenshot
 
; Action
* <code>[</code> - previous item
* <code>]</code> - next item
* <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
 
; 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 ===
; Basic buttons
* <code>Right</code> - hold to rotate left right
* <code>Left</code> - action
* <code>Wheel</code> - scroll text, zoom in out

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