<?xml version="1.0"?>
<!--
Key binding definitions.

This file is included by preferences.xml, and uses the context of its
inclusion point; that means that you need to prepend "/input/keyboard"
to all property names.

The list here is not yet comprehensive: many of the bindings are still
handled in the C++ code.

Regular keycodes go up to 255; special keys start at 256, and can be
calculated by adding 256 to the GLUT key value in glut.h.
-->

<PropertyList>

 <key n="1">
  <name>Ctrl-A</name>
  <desc>Toggle autopilot altitude lock.</desc>
  <binding>
   <command>property-toggle</command>
   <property>/autopilot/locks/altitude</property>
  </binding>
 </key>

 <key n="7">
  <name>Ctrl-G</name>
  <desc>Toggle autopilot glide slope lock.</desc>
  <binding>
   <command>property-toggle</command>
   <property>/autopilot/locks/glide-slope</property>
  </binding>
 </key>

 <key n="8">
  <name>Ctrl-H</name>
  <desc>Toggle autopilot heading lock.</desc>
  <binding>
   <command>property-toggle</command>
   <property>/autopilot/locks/heading</property>
  </binding>
 </key>

<key n="18">
  <name>Ctrl-R</name>
  <desc>(Temporary) Toggle winding-ccw</desc>
  <binding>
    <command>property-toggle</command>
    <property>/sim/temp/winding-ccw</property>
  </binding>
</key>

<key n="20">
  <name>Ctrl-T</name>
  <desc>Toggle autopilot terrain lock.</desc>
  <binding>
   <command>property-toggle</command>
   <property>/autopilot/locks/terrain</property>
  </binding>
 </key>

 <key n="13">
  <name>Enter</name>
  <desc>Move rudder right or increase autopilot heading.</desc>
  <binding>
   <command>property-adjust</command>
   <property>/autopilot/control-overrides/rudder</property>
   <step type="double">0.05</step>
  </binding>
 </key>

 <key n="14">
  <name>Ctrl-N</name>
  <desc>Toggle autopilot nav1 lock.</desc>
  <binding>
   <command>property-toggle</command>
   <property>/autopilot/locks/nav[0]</property>
  </binding>
 </key>

 <key n="19">
  <name>Ctrl-S</name>
  <desc>Toggle auto-throttle lock.</desc>
  <binding>
   <command>property-toggle</command>
   <property>/autopilot/locks/auto-throttle</property>
  </binding>
 </key>

 <key n="21">
  <name>Ctrl-U</name>
  <desc>[Cheat] Add 1000ft of emergency altitude.</desc>
  <binding>
   <command>property-adjust</command>
   <property>/position/altitude-ft</property>
   <step type="double">1000.0</step>
  </binding>
 </key>

 <key n="27">
  <name>ESC</name>
  <desc>Prompt and quit FlightGear.</desc>
  <binding>
    <command>exit</command>
  </binding>
 </key>

 <key n="44">
  <name>,</name>
  <desc>Left brake</desc>
  <binding>
   <command>property-assign</command>
   <property>/controls/brakes[0]</property>
   <value type="double">1.0</value>
  </binding>
  <mod-up>
   <binding>
    <command>property-assign</command>
    <property>/controls/brakes[0]</property>
    <value type="double">0.0</value>
   </binding>
  </mod-up>
 </key>

 <key n="46">
  <name>.</name>
  <desc>Right brake</desc>
  <binding>
   <command>property-assign</command>
   <property>/controls/brakes[1]</property>
   <value type="double">1.0</value>
  </binding>
  <mod-up>
   <binding>
    <command>property-assign</command>
    <property>/controls/brakes[1]</property>
    <value type="double">0.0</value>
   </binding>
  </mod-up>
 </key>

 <key n="48">
  <name>0</name>
  <desc>Move rudder left or increase autopilot heading.</desc>
  <binding>
   <command>property-adjust</command>
   <property>/autopilot/control-overrides/rudder</property>
   <step type="double">-0.05</step>
  </binding>
 </key>

 <key n="49">
  <name>1</name>
  <desc>Decrease elevator trim.</desc>
  <binding>
   <command>property-adjust</command>
   <property>/controls/elevator-trim</property>
   <step type="double">-0.001</step>
  </binding>
  <mod-shift>
    <desc>Look back left</desc>
    <binding>
     <command>property-assign</command>
     <property>/sim/view/goal-offset-deg</property>
     <value type="double">135</value>
    </binding>
  </mod-shift>
 </key>

 <key n="50">
  <name>2</name>
  <desc>Increase elevator or autopilot altitude.</desc>
  <binding>
   <command>property-adjust</command>
   <property>/autopilot/control-overrides/elevator</property>
   <step type="double">-0.01</step>
  </binding>
  <mod-shift>
   <desc>Look back.</desc>
   <binding>
    <command>property-assign</command>
    <property>/sim/view/goal-offset-deg</property>
    <value type="double">180</value>
   </binding>
  </mod-shift>
 </key>

 <key n="51">
  <name>3</name>
  <desc>Decrease throttle or autopilot autothrottle.</desc>
  <binding>
   <command>property-adjust</command>
   <property>/autopilot/control-overrides/throttle</property>
   <step type="double">-0.01</step>
  </binding>
  <mod-shift>
   <desc>Look back right.</desc>
   <binding>
    <command>property-assign</command>
    <property>/sim/view/goal-offset-deg</property>
    <value type="double">225</value>
   </binding>
  </mod-shift>
 </key>

 <key n="52">
  <name>4</name>
  <desc>Move aileron left.</desc>
  <binding>
   <command>property-adjust</command>
   <property>/controls/aileron</property>
   <step type="double">-0.05</step>
  </binding>
  <mod-shift>
   <desc>Look left.</desc>
   <binding>
    <command>property-assign</command>
    <property>/sim/view/goal-offset-deg</property>
    <value type="double">90</value>
   </binding>
  </mod-shift>
 </key>

 <key n="53">
  <name>5</name>
  <desc>Center aileron, elevator, and rudder.</desc>
  <binding>
   <command>property-assign</command>
   <property>/controls/aileron</property>
   <value type="double">0.0</value>
  </binding>
  <binding>
   <command>property-assign</command>
   <property>/controls/elevator</property>
   <value type="double">0.0</value>
  </binding>
  <binding>
   <command>property-assign</command>
   <property>/controls/rudder</property>
   <value type="double">0.0</value>
  </binding>
 </key>

 <key n="54">
  <name>6</name>
  <desc>Move aileron right.</desc>
  <binding>
   <command>property-adjust</command>
   <property>/controls/aileron</property>
   <step type="double">0.05</step>
  </binding>
  <mod-shift>
   <desc>Look right.</desc>
   <binding>
    <command>property-assign</command>
    <property>/sim/view/goal-offset-deg</property>
    <value type="double">270</value>
   </binding>
  </mod-shift>
 </key>

 <key n="55">
  <name>7</name>
  <desc>Increase elevator trim.</desc>
  <binding>
   <command>property-adjust</command>
   <property>/controls/elevator-trim</property>
   <step type="double">0.001</step>
  </binding>
  <mod-shift>
   <desc>Look front left.</desc>
   <binding>
    <command>property-assign</command>
    <property>/sim/view/goal-offset-deg</property>
    <value type="double">45</value>
   </binding>
  </mod-shift>
 </key>

 <key n="56">
  <name>8</name>
  <desc>Decrease elevator or autopilot altitude.</desc>
  <binding>
   <command>property-adjust</command>
   <property>/autopilot/control-overrides/elevator</property>
   <step type="double">0.01</step>
  </binding>
  <mod-shift>
   <desc>Look forward.</desc>
   <binding>
    <command>property-assign</command>
    <property>/sim/view/goal-offset-deg</property>
    <value type="double">0</value>
   </binding>
  </mod-shift>
 </key>

 <key n="57">
  <name>9</name>
  <desc>Increase throttle or autopilot autothrottle.</desc>
  <binding>
   <command>property-adjust</command>
   <property>/autopilot/control-overrides/throttle</property>
   <step type="double">0.01</step>
  </binding>
  <mod-shift>
   <desc>Look front right.</desc>
   <binding>
    <command>property-assign</command>
    <property>/sim/view/goal-offset-deg</property>
    <value type="double">315</value>
   </binding>
  </mod-shift>
 </key>

 <key n="65">
  <name>A</name>
  <desc>Decrease speed-up.</desc>
  <binding>
   <command>property-adjust</command>
   <property>/sim/speed-up</property>
   <min>1</min>
   <step type="double">-1</step>
  </binding>
 </key>

 <key n="66">
  <name>B</name>
  <desc>Toggle parking brake on or off</desc>
  <binding>
   <command>property-toggle</command>
   <property>/controls/brakes[0]</property>
  </binding>
  <binding>
   <command>property-toggle</command>
   <property>/controls/brakes[1]</property>
  </binding>
  <binding>
   <command>property-toggle</command>
   <property>/controls/brakes[2]</property>
  </binding>
 </key>

 <key n="77">
  <name>M</name>
  <desc>Decrease warp.</desc>
  <binding>
   <command>property-adjust</command>
   <property>/sim/time/warp</property>
   <step>-60</step>
  </binding>
 </key>

 <key n="80">
  <name>P</name>
  <desc>Toggle panel.</desc>
  <binding>
   <command>property-toggle</command>
   <property>/sim/panel/visibility</property>
  </binding>
 </key>

 <key n="84">
  <name>T</name>
  <desc>Decrease warp delta.</desc>
  <binding>
   <command>property-adjust</command>
   <property>/sim/time/warp-delta</property>
   <step>-30</step>
  </binding>
 </key>

 <key n="87">
  <name>W</name>
  <desc>(Temporary) Toggle fullscreen for 3DFX only.</desc>
  <binding>
   <command>property-toggle</command>
   <property>/sim/temp/full-screen</property>
  </binding>
 </key>

 <key n="88">
  <name>X</name>
  <desc>Increase field of view.</desc>
  <binding>
   <command>property-multiply</command>
   <property>/sim/field-of-view</property>
   <factor>1.05</factor>
  </binding>
 </key>

 <key n="90">
  <name>Z</name>
  <desc>Decrease Visibility</desc>
  <binding>
   <command>property-multiply</command>
   <property>/environment/visibility-m</property>
   <factor>0.9090909090</factor>
  </binding>
 </key>

 <key n="91">
  <name>[</name>
  <desc>Decrease flaps.</desc>
  <binding>
   <command>property-adjust</command>
   <property>/controls/flaps</property>
   <step type="double">-0.34</step>
  </binding>
 </key>

 <key n="93">
  <name>]</name>
  <desc>Increase flaps.</desc>
  <binding>
   <command>property-adjust</command>
   <property>/controls/flaps</property>
   <step type="double">0.34</step>
  </binding>
 </key>

 <key n="97">
  <name>a</name>
  <desc>Increase speed-up.</desc>
  <binding>
   <command>property-adjust</command>
   <property>/sim/speed-up</property>
   <min>1</min>
   <step type="double">1</step>
  </binding>
 </key>

 <key n="98">
  <name>b</name>
  <desc>Apply all brakes.</desc>
  <binding>
   <command>property-assign</command>
   <property>/controls/brakes[0]</property>
   <value type="double">1.0</value>
  </binding>
  <binding>
   <command>property-assign</command>
   <property>/controls/brakes[1]</property>
   <value type="double">1.0</value>
  </binding>
  <binding>
   <command>property-assign</command>
   <property>/controls/brakes[2]</property>
   <value type="double">1.0</value>
  </binding>
  <mod-up>
   <desc>Release all brakes.</desc>
   <binding>
    <command>property-assign</command>
    <property>/controls/brakes[0]</property>
    <value type="double">0.0</value>
   </binding>
   <binding>
    <command>property-assign</command>
    <property>/controls/brakes[1]</property>
    <value type="double">0.0</value>
   </binding>
   <binding>
    <command>property-assign</command>
    <property>/controls/brakes[2]</property>
    <value type="double">0.0</value>
   </binding>
  </mod-up>
 </key>

 <key n="109">
  <name>m</name>
  <desc>Increase warp.</desc>
  <binding>
   <command>property-adjust</command>
   <property>/sim/time/warp</property>
   <step>60</step>
  </binding>
 </key>

 <key n="103">
  <name>g</name>
  <desc>Toggle gear down.</desc>
  <binding>
   <command>property-toggle</command>
   <property>/controls/gear-down</property>
  </binding>
 </key>

 <key n="112">
  <name>p</name>
  <desc>Toggle the pause state of the sim.</desc>
  <binding>
   <command>property-toggle</command>
   <property>/sim/freeze</property>
  </binding>
 </key>

 <key n="115">
  <name>s</name>
  <desc>Swap panels.</desc>
  <binding>
  <command>property-swap</command>
  <property>/sim/panel/path</property>
  <property>/sim/panel_2/path</property>
  </binding>
  <binding>
  <desc>Load panel.</desc>
  <command>panel-load</command>
  </binding>
 </key>

 <key n="116">
  <name>t</name>
  <desc>Increase warp delta.</desc>
  <binding>
   <command>property-adjust</command>
   <property>/sim/time/warp-delta</property>
   <step>30</step>
  </binding>
 </key>

 <key n="118">
  <name>v</name>
  <desc>Cycle view</desc>
  <binding>
   <command>view-cycle</command>
  </binding>
 </key>

 <key n="120">
  <name>x</name>
  <desc>Decrease field of view.</desc>
  <binding>
   <command>property-multiply</command>
   <property>/sim/field-of-view</property>
   <factor>0.952380952380</factor>
  </binding>
 </key>

 <key n="122">
  <name>z</name>
  <desc>Increase Visibility</desc>
  <binding>
   <command>property-multiply</command>
   <property>/environment/visibility-m</property>
   <factor>1.1</factor>
  </binding>
 </key>

 <key n="257">
  <name>F1</name>
  <mod-shift>
   <binding>
    <desc>Load flight.</desc>
    <command>load</command>
   </binding>
  </mod-shift>
 </key>

 <key n="258">
  <name>F2</name>
  <binding>
   <desc>Force tile cache reload.</desc>
   <command>tile-cache-reload</command>
  </binding>
  <mod-shift>
   <binding>
    <desc>Save flight.</desc>
    <command>save</command>
   </binding>
  </mod-shift>
 </key>

 <key n="259">
  <name>F3</name>
  <desc>Capture screen.</desc>
  <binding>
   <command>screen-capture</command>
  </binding>
  <mod-shift>
   <binding>
    <desc>Load panel.</desc>
    <command>panel-load</command>
   </binding>
  </mod-shift>
 </key>

 <key n="260">
  <name>F4</name>
  <binding>
   <desc>Force lighting update.</desc>
   <command>lighting-update</command>
  </binding>
  <mod-shift>
   <binding>
    <desc>Reload global preferences.</desc>
    <command>preferences-load</command>
   </binding>
  </mod-shift>
 </key>

 <key n="261">
  <name>F5</name>
  <mod-shift>
   <binding>
    <desc>Scroll panel down</desc>
    <command>property-adjust</command>
    <property>/sim/panel/y-offset</property>
    <step type="int">-5</step>
   </binding>
  </mod-shift>
 </key>

 <key n="262">
  <name>F6</name>
  <mod-shift>
   <binding>
    <desc>Scroll panel up</desc>
    <command>property-adjust</command>
    <property>/sim/panel/y-offset</property>
    <step type="int">5</step>
   </binding>
  </mod-shift>
 </key>

 <key n="263">
  <name>F7</name>
  <mod-shift>
   <binding>
    <desc>Scroll panel left</desc>
    <command>property-adjust</command>
    <property>/sim/panel/x-offset</property>
    <step type="int">-5</step>
   </binding>
  </mod-shift>
 </key>

 <key n="264">
  <name>F8</name>
  <mod-shift>
   <binding>
    <desc>Scroll panel right</desc>
    <command>property-adjust</command>
    <property>/sim/panel/x-offset</property>
    <step type="int">5</step>
   </binding>
  </mod-shift>
 </key>

 <key n="265">
  <name>F9</name>
  <binding>
   <desc>Toggle textures.</desc>
   <command>property-toggle</command>
   <property>/sim/rendering/textures</property>
  </binding>
 </key>

 <key n="266">
  <name>F10</name>
  <mod-shift>
   <binding>
    <desc>Toggle FDM data logging.</desc>
    <command>property-toggle</command>
    <property>/sim/temp/fdm-data-logging</property>
   </binding>
  </mod-shift>
 </key>

 <key n="269">
  <name>Enter</name>
  <desc>Move rudder right or increase autopilot heading.</desc>
  <binding>
   <command>property-adjust</command>
   <property>/autopilot/control-overrides/rudder</property>
   <step type="double">0.05</step>
  </binding>
 </key>

 <key n="309">
  <name>Keypad 5</name>
  <desc>Center aileron, elevator, and rudder.</desc>
  <binding>
   <command>property-assign</command>
   <property>/controls/aileron</property>
   <value type="double">0.0</value>
  </binding>
  <binding>
   <command>property-assign</command>
   <property>/controls/elevator</property>
   <value type="double">0.0</value>
  </binding>
  <binding>
   <command>property-assign</command>
   <property>/controls/rudder</property>
   <value type="double">0.0</value>
  </binding>
 </key>

 <key n="356">
  <name>Left</name>
  <desc>Move aileron left.</desc>
  <binding>
   <command>property-adjust</command>
   <property>/controls/aileron</property>
   <step type="double">-0.05</step>
  </binding>
  <mod-shift>
   <desc>Look left.</desc>
   <binding>
    <command>property-assign</command>
    <property>/sim/view/goal-offset-deg</property>
    <value type="double">90</value>
   </binding>
  </mod-shift>
 </key>

 <key n="357">
  <name>Up</name>
  <desc>Increase elevator or autopilot altitude.</desc>
  <binding>
   <command>property-adjust</command>
   <property>/autopilot/control-overrides/elevator</property>
   <step type="double">0.05</step>
  </binding>
  <mod-shift>
   <desc>Look forward.</desc>
   <binding>
    <command>property-assign</command>
    <property>/sim/view/goal-offset-deg</property>
    <value type="double">0</value>
   </binding>
  </mod-shift>
 </key>

 <key n="358">
  <name>Right</name>
  <desc>Move aileron right.</desc>
  <binding>
   <command>property-adjust</command>
   <property>/controls/aileron</property>
   <step type="double">0.05</step>
  </binding>
  <mod-shift>
   <desc>Look right.</desc>
   <binding>
    <command>property-assign</command>
    <property>/sim/view/goal-offset-deg</property>
    <value type="double">270</value>
   </binding>
  </mod-shift>
 </key>

 <key n="359">
  <name>Down</name>
  <desc>Decrease elevator or autopilot altitude.</desc>
  <binding>
   <command>property-adjust</command>
   <property>/autopilot/control-overrides/elevator</property>
   <step type="double">-0.05</step>
  </binding>
  <mod-shift>
   <desc>Look backwards.</desc>
   <binding>
    <command>property-assign</command>
    <property>/sim/view/goal-offset-deg</property>
    <value type="double">180</value>
   </binding>
  </mod-shift>
 </key>

 <key n="360">
  <name>PageUp</name>
  <desc>Increase throttle or autopilot autothrottle.</desc>
  <binding>
   <command>property-adjust</command>
   <property>/autopilot/control-overrides/throttle</property>
   <step type="double">0.01</step>
  </binding>
  <mod-shift>
   <desc>Look front right.</desc>
   <binding>
    <command>property-assign</command>
    <property>/sim/view/goal-offset-deg</property>
    <value type="double">315</value>
   </binding>
  </mod-shift>
 </key>

 <key n="361">
  <name>PageDown</name>
  <desc>Decrease throttle or autopilot autothrottle.</desc>
  <binding>
   <command>property-adjust</command>
   <property>/autopilot/control-overrides/throttle</property>
   <step type="double">-0.01</step>
  </binding>
  <mod-shift>
   <desc>Look back right.</desc>
   <binding>
    <command>property-assign</command>
    <property>/sim/view/goal-offset-deg</property>
    <value type="double">225</value>
   </binding>
  </mod-shift>
 </key>

 <key n="362">
  <name>Home</name>
  <desc>Increase elevator trim.</desc>
  <binding>
   <command>property-adjust</command>
   <property>/controls/elevator-trim</property>
   <step type="double">0.001</step>
  </binding>
  <mod-shift>
   <desc>Look front left.</desc>
   <binding>
    <command>property-assign</command>
    <property>/sim/view/goal-offset-deg</property>
    <value type="double">45</value>
   </binding>
  </mod-shift>
 </key>

 <key n="363">
  <name>End</name>
  <desc>Decrease elevator trim.</desc>
  <binding>
   <command>property-adjust</command>
   <property>/controls/elevator-trim</property>
   <step type="double">-0.001</step>
  </binding>
  <mod-shift>
   <desc>Look back left.</desc>
   <binding>
    <command>property-assign</command>
    <property>/sim/view/goal-offset-deg</property>
    <value type="double">135</value>
   </binding>
  </mod-shift>
 </key>

 <key n="364">
  <name>Insert</name>
  <desc>Move rudder left or decrease autopilot heading.</desc>
  <binding>
   <command>property-adjust</command>
   <property>/autopilot/control-overrides/rudder</property>
   <step type="double">-0.05</step>
  </binding>
 </key>

</PropertyList>

<!-- end of keyboard.xml -->