Difference between revisions of "Oolite Keyboard Controls"

From Elite Wiki
(Undocumented Keys)
(Changing Key Assignments)
Line 106: Line 106:
 
== Changing Key Assignments ==
 
== Changing Key Assignments ==
   
  +
If you want to change key assignments ''don't'' alter the default file. Instead copy <code> keyconfig.plist </code> from
  +
<code> /usr/lib/Oolite/oolite.app/Contents/Resources/Config/ </code> to
  +
<code> /usr/lib/Oolite/AddOns/Config/</code>.
  +
(Note that you may need to create the Config directory first.)
   
== Non-Configurable Keys ==
 
   
Some keys are built directly into the game so they're not user-configurable. If you're setting up your own controls watch out you don't double up!
 
  +
You can edit <code> keyconfig.plist </code> with any standard text editor. You'll find a list of Linux keycodes [http://www.comptechdoc.org/os/linux/howlinuxworks/linux_hlkeycodes.html here]. Note that Oolite uses ''decimal'' values whereas most keycodes are expressed in ''hexadecimal''. This can cause confusion. For example the comma key produces a keycode of 2C (hex) which translates to 44 (decimal), whereas keycode 44 (hex) refers to the uppercase "D" key, which is actually 68 (decimal)! (If you don't have a hex/decimal calculator handy try [http://www.lookuptables.com/ this table].)
  +
  +
== Undocumented Keys ==
  +
  +
The following keys aren't yet official so your mileage may vary!
   
   
Line 116: Line 123:
 
|-style="background:darkslateblue; color:white"
 
|-style="background:darkslateblue; color:white"
 
! Action !! Key !! Keycode (Dec) !! Keycode (Hex) !! Notes
 
! Action !! Key !! Keycode (Dec) !! Keycode (Hex) !! Notes
|-align="center"
 
! Pause the Game
 
| p || 112 || 70 || Hit "p" again to continue.
 
 
|-align="center"
 
|-align="center"
 
! Toggle Mouse Conrol
 
! Toggle Mouse Conrol

Revision as of 11:08, 26 January 2006

Default Key Assignments

Linux users will find the following key assignments in /usr/lib/Oolite/oolite.app/Contents/Resources/Config/keyconfig.plist (assuming you did a default installation!).


Action Key Keycode (Dec) Keycode (Hex) Notes
Roll Left Left arrow 253 FD
Roll Right Right arrow 252 FC
Pitch Forward Up arrow 255 FF
Pitch Back Down arrow 254 FE
Increase Speed w 119 77
Inject Fuel i 105 69
Decrease Speed s 115 73
Fire Lasers a 97 61
Target Missile t 116 74
Untarget Missile u 117 75
Launch Missile m 109 6D
Next Missile y 121 79
Activate Ident System r 114 72
Activate ECM e 101 65
Launch Escape Pod Esc 27 1B
Energy Bomb Tab 9 09
Galactic Hyperspace g 103 67
Emergency Hyperdrive H 72 48 ??
Hyperspace h 104 68
Jumpdrive j 106 6A
Dump Cargo d 100 64
Autopilot c 99 63
Autodock D 68 44
Take a Snapshot * (shift+8) 42 2A Written to /usr/lib/Oolite
Docking Music Toggle s 115 73 Only if Docking Computer fitted!
Scanner Zoom z 122 7A
Map Dump ! (shift +1) 33 21
Map Home 302 ??
Comms Log ` 96 60
Next Compass Mode \ 92 5C



Changing Key Assignments

If you want to change key assignments don't alter the default file. Instead copy keyconfig.plist from /usr/lib/Oolite/oolite.app/Contents/Resources/Config/ to /usr/lib/Oolite/AddOns/Config/. (Note that you may need to create the Config directory first.)


You can edit keyconfig.plist with any standard text editor. You'll find a list of Linux keycodes here. Note that Oolite uses decimal values whereas most keycodes are expressed in hexadecimal. This can cause confusion. For example the comma key produces a keycode of 2C (hex) which translates to 44 (decimal), whereas keycode 44 (hex) refers to the uppercase "D" key, which is actually 68 (decimal)! (If you don't have a hex/decimal calculator handy try this table.)

Undocumented Keys

The following keys aren't yet official so your mileage may vary!


Action Key Keycode (Dec) Keycode (Hex) Notes
Toggle Mouse Conrol Shift + M 77 4D When activated, the mouse becomes a virtual joystick. The left mouse button fires and the right should re-centre your ship.



Other Keyboard Tricks