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

<PropertyList>

  <keyboard>

    <key n="100">
      <name>d</name>
      <desc>Crew canopydoor</desc>
      <binding>
        <command>nasal</command>
        <script>doors.crew.toggle();</script>
      </binding>
    </key>

    <key n="68">
      <name>D</name>
      <desc>Passenger canopy</desc>
      <binding>
        <command>nasal</command>
        <script>doors.passenger.toggle();</script>
      </binding>
    </key>

    <key n="69">
      <name>E</name>
      <desc>Wings</desc>
      <binding>
        <condition>
          <equals>
            <!-- <property>/sim/model/mode</property> -->
            <property>sim/multiplay/generic/string[0]</property>
            <value>SEAPLANE</value>
          </equals>
        </condition>
        <command>nasal</command>
        <script>doors.wings.toggle();</script>
      </binding>
    </key>

    <key n="101">
      <name>e</name>
      <desc>Guns</desc>
      <binding>
        <command>property-assign</command>
        <!-- <property>controls/armament/trigger</property> -->
        <property>sim/multiplay/generic/int[10]</property>
        <value type="bool">true</value>
      </binding>
      <mod-up>
        <binding>
          <command>property-assign</command>
          <!-- <property>controls/armament/trigger</property> -->
          <property>sim/multiplay/generic/int[10]</property>
          <value type="bool">false</value>
        </binding>
      </mod-up>
    </key>

    <key n="2">
      <name>Ctrl+b</name>
      <desc>Release bomb</desc>
      <binding>
        <command>property-assign</command>
        <!-- <property>controls/armament/release-all</property> -->
        <property>sim/multiplay/generic/int[11]</property>
        <value type="bool">true</value>
      </binding>
      <mod-up>
        <binding>
          <command>property-assign</command>
          <!-- <property>controls/armament/release-all</property> -->
          <property>sim/multiplay/generic/int[11]</property>
          <value type="bool">false</value>
        </binding>
      </mod-up>
    </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>
       <!-- 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>
       <!-- 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>
         <command>nasal</command>
         <script>controls.startEngine(0,0)</script>
       </binding>
       <!-- ***************************************************** -->
       <binding>
         <condition>
           <property>controls/switches/starterkey-insert</property>
         </condition>
         <command>nasal</command>
         <script>gui.popupTip("Press 's' to start")</script>
       </binding>
    </key>

  </keyboard>

</PropertyList>
