<?xml version="1.0" encoding="ISO-8859-1"?>

<PropertyList>

  <keyboard>

    <key n="100">
      <name>d</name>
      <desc>Canopy</desc>
      <binding>
        <command>nasal</command>
        <script>doors.doorsystem.crewexport();</script>
      </binding>
      <binding>
        <command>property-toggle</command>
        <property>instrumentation/generic/click</property>
      </binding>
    </key>

    <key n="115">
      <name>s</name>
      <desc>Start Engines</desc>
      <binding>
        <command>nasal</command>
        <script>dox.startEngines();</script>
      </binding>
    </key>

    <key n="19">
      <name>Ctrl-S</name>
      <desc>Stop Engine</desc>
      <binding>
        <command>nasal</command>
        <script>dox.stopEngines();</script>
      </binding>
    </key>

    <key n="57">
      <name>PgUp</name>
      <desc>Throttle</desc>
      <binding>
        <command>nasal</command>
        <script>dox.throttleControl(0.01,1.0)</script>
      </binding>
    </key>

    <key n="51">
      <name>PgDown</name>
      <desc>Throttle</desc>
      <binding>
        <command>nasal</command>
        <script>dox.throttleControl(-0.01,1.0)</script>
      </binding>
    </key>

    <key n="44">
      <name>,</name>
      <repeatable>true</repeatable>
      <desc>Throttle Left Up</desc>
      <binding>
        <command>nasal</command>
        <script>dox.throttleControlL(0.01,1.0)</script>
      </binding>
    </key>

    <key n="59">
      <name>.</name>
      <repeatable>true</repeatable>
      <desc>Throttle Left Down</desc>
      <binding>
        <command>nasal</command>
        <script>dox.throttleControlL(-0.01,1.0)</script>
      </binding>
    </key>

    <key n="46">
      <name>;</name>
      <repeatable>true</repeatable>
      <desc>Throttle Right Up</desc>
      <binding>
        <command>nasal</command>
        <script>dox.throttleControlR(0.01,1.0)</script>
      </binding>
    </key>

    <key n="58">
      <name>:</name>
      <repeatable>true</repeatable>
      <desc>Throttle Right Down</desc>
      <binding>
        <command>nasal</command>
        <script>dox.throttleControlR(-0.01,1.0)</script>
      </binding>
    </key>

    <key n="66">
      <name>B</name>
      <desc>Anchor down</desc>
      <binding>
        <command>nasal</command>
        <script>dox.castAnchor();</script>
      </binding>
    </key>

    <key n="98">
      <name>b</name>
      <desc>Anchor up</desc>
      <binding>
        <command>nasal</command>
        <script>dox.hoistAnchor();</script>
      </binding>
    </key>

    <key n="108">
      <name>l</name>
      <desc>Interior Lights on/off</desc>
      <binding>
        <command>nasal</command>
        <script>dox.interiorLights();</script>
      </binding>
    </key>

    <key n="61">
      <name>=</name>
      <desc>Do X Engineer Menu</desc>
      <binding>
        <command>dialog-show</command>
        <dialog-name>dox-engineer</dialog-name>
      </binding>
    </key>

    <key n="60">
      <name> > </name>
      <desc>View of the Radio Navigation Officer</desc>
      <binding>
        <command>nasal</command>
        <script>dox.changeView(13);</script>
      </binding>
    </key>

    <key n="81">
      <name>Q</name>
      <desc>Reset view</desc>
      <binding>
        <command>nasal</command>
        <script>
          setprop("sim/current-view/field-of-view",      getprop("sim/current-view/config/default-field-of-view-deg"));
          setprop("sim/current-view/heading-offset-deg", getprop("sim/current-view/config/heading-offset-deg"));
          setprop("sim/current-view/pitch-offset-deg",   getprop("sim/current-view/config/pitch-offset-deg"));
          setprop("sim/current-view/roll-offset-deg",    getprop("sim/current-view/config/roll-offset-deg"));
        </script>
      </binding>
    </key>

    <key n="125">
      <name>}</name>
      <desc>Autostart/AutoStop</desc>
      <binding>
        <command>property-toggle</command>
        <property>controls/electric/battery-switch</property>
      </binding>
      <binding>
        <command>property-toggle</command>
        <property>controls/electric/engine/generator</property>
      </binding>
      <binding>
        <command>property-toggle</command>
        <property>controls/lighting/instrument-lights</property>
      </binding>
      <binding>
        <command>property-toggle</command>
        <property>controls/lighting/nav-lights</property>
      </binding>
      <binding>
        <command>property-toggle</command>
        <property>controls/lighting/beacon</property>
      </binding>
      <binding>
        <command>property-toggle</command>
        <property>controls/lighting/strobe</property>
      </binding>
      <binding>
        <command>property-toggle</command>
        <property>controls/switches/starterkey-insert</property>
      </binding>
      <binding>
        <command>property-toggle</command>
        <property>controls/engines/engine[0]/fuel-pump</property>
      </binding>
      <binding>
        <command>property-toggle</command>
        <property>controls/engines/engine[1]/fuel-pump</property>
      </binding>
      <!-- Magnetos ON -->
      <binding>
        <condition>
          <property>controls/switches/starterkey-insert</property>
        </condition>
        <command>property-assign</command>
        <property>controls/engines/engine[0]/magnetos</property>
        <value>3</value>
      </binding>
      <binding>
        <condition>
          <property>controls/switches/starterkey-insert</property>
        </condition>
        <command>property-assign</command>
        <property>controls/engines/engine[1]/magnetos</property>
        <value>3</value>
      </binding>
      <binding>
        <condition>
          <property>controls/switches/starterkey-insert</property>
        </condition>
        <command>property-assign</command>
        <property>controls/engines/engine[2]/magnetos</property>
        <value>3</value>
      </binding>
      <binding>
        <condition>
          <property>controls/switches/starterkey-insert</property>
        </condition>
        <command>property-assign</command>
        <property>controls/engines/engine[3]/magnetos</property>
        <value>3</value>
      </binding>
      <binding>
        <condition>
          <property>controls/switches/starterkey-insert</property>
        </condition>
        <command>property-assign</command>
        <property>controls/engines/engine[4]/magnetos</property>
        <value>3</value>
      </binding>
      <binding>
        <condition>
          <property>controls/switches/starterkey-insert</property>
        </condition>
        <command>property-assign</command>
        <property>controls/engines/engine[5]/magnetos</property>
        <value>3</value>
      </binding>
      <binding>
        <condition>
          <property>controls/switches/starterkey-insert</property>
        </condition>
        <command>property-assign</command>
        <property>controls/engines/engine[6]/magnetos</property>
        <value>3</value>
      </binding>
      <binding>
        <condition>
          <property>controls/switches/starterkey-insert</property>
        </condition>
        <command>property-assign</command>
        <property>controls/engines/engine[7]/magnetos</property>
        <value>3</value>
      </binding>
      <binding>
        <condition>
          <property>controls/switches/starterkey-insert</property>
        </condition>
        <command>property-assign</command>
        <property>controls/engines/engine[8]/magnetos</property>
        <value>3</value>
      </binding>
      <binding>
        <condition>
          <property>controls/switches/starterkey-insert</property>
        </condition>
        <command>property-assign</command>
        <property>controls/engines/engine[9]/magnetos</property>
        <value>3</value>
      </binding>
      <binding>
        <condition>
          <property>controls/switches/starterkey-insert</property>
        </condition>
        <command>property-assign</command>
        <property>controls/engines/engine[10]/magnetos</property>
        <value>3</value>
      </binding>
      <binding>
        <condition>
          <property>controls/switches/starterkey-insert</property>
        </condition>
        <command>property-assign</command>
        <property>controls/engines/engine[11]/magnetos</property>
        <value>3</value>
      </binding>
      <!-- Magnetos OFF -->
      <binding>
        <condition>
          <not><property>controls/switches/starterkey-insert</property></not>
        </condition>
        <command>property-assign</command>
        <property>controls/engines/engine[0]/magnetos</property>
        <value>0</value>
      </binding>
      <binding>
        <condition>
          <not><property>controls/switches/starterkey-insert</property></not>
        </condition>
        <command>property-assign</command>
        <property>controls/engines/engine[1]/magnetos</property>
        <value>0</value>
      </binding>
      <binding>
        <condition>
          <not><property>controls/switches/starterkey-insert</property></not>
        </condition>
        <command>property-assign</command>
        <property>controls/engines/engine[2]/magnetos</property>
        <value>0</value>
      </binding>
      <binding>
        <condition>
          <not><property>controls/switches/starterkey-insert</property></not>
        </condition>
        <command>property-assign</command>
        <property>controls/engines/engine[3]/magnetos</property>
        <value>0</value>
      </binding>
      <binding>
        <condition>
          <not><property>controls/switches/starterkey-insert</property></not>
        </condition>
        <command>property-assign</command>
        <property>controls/engines/engine[4]/magnetos</property>
        <value>0</value>
      </binding>
      <binding>
        <condition>
          <not><property>controls/switches/starterkey-insert</property></not>
        </condition>
        <command>property-assign</command>
        <property>controls/engines/engine[5]/magnetos</property>
        <value>0</value>
      </binding>
      <binding>
        <condition>
          <not><property>controls/switches/starterkey-insert</property></not>
        </condition>
        <command>property-assign</command>
        <property>controls/engines/engine[6]/magnetos</property>
        <value>0</value>
      </binding>
      <binding>
        <condition>
          <not><property>controls/switches/starterkey-insert</property></not>
        </condition>
        <command>property-assign</command>
        <property>controls/engines/engine[7]/magnetos</property>
        <value>0</value>
      </binding>
      <binding>
        <condition>
          <not><property>controls/switches/starterkey-insert</property></not>
        </condition>
        <command>property-assign</command>
        <property>controls/engines/engine[8]/magnetos</property>
        <value>0</value>
      </binding>
      <binding>
        <condition>
          <not><property>controls/switches/starterkey-insert</property></not>
        </condition>
        <command>property-assign</command>
        <property>controls/engines/engine[9]/magnetos</property>
        <value>0</value>
      </binding>
      <binding>
        <condition>
          <not><property>controls/switches/starterkey-insert</property></not>
        </condition>
        <command>property-assign</command>
        <property>controls/engines/engine[10]/magnetos</property>
        <value>0</value>
      </binding>
      <binding>
        <condition>
          <not><property>controls/switches/starterkey-insert</property></not>
        </condition>
        <command>property-assign</command>
        <property>controls/engines/engine[11]/magnetos</property>
        <value>0</value>
      </binding>
      <!-- ********************************************************* -->
      <binding>
        <command>nasal</command>
        <script>engines.autostart();</script>
      </binding>
    </key>

  </keyboard>

</PropertyList>
