<?xml version="1.0"?>
<!--
##  Read out key flight parameters
##
##  Copyright (C) 2008  Anders Gidenstam  (anders(at)gidenstam.org)
##  This file is licensed under the GPL license version 2 or later.
##
##  Usage: - -config=speak_keys.xml
-->
<PropertyList>

 <input>
  <keyboard>

   <key n="97">
    <name>a</name>
    <desc>Readout autopilot mode.</desc>
    <binding>
     <command>nasal</command>
     <script>speak.KAP140_mode()</script>
    </binding>
   </key>

   <key n="104">
    <name>h</name>
    <desc>Readout heading.</desc>
    <binding>
     <command>nasal</command>
     <script>speak.heading()</script>
    </binding>
   </key>

   <key n="105">
    <name>i</name>
    <desc>Readout ILS.</desc>
    <binding>
     <command>nasal</command>
     <script>speak.ILS()</script>
    </binding>
   </key>

   <key n="111">
    <name>o</name>
    <desc>Readout VOR.</desc>
    <binding>
     <command>nasal</command>
     <script>speak.VOR()</script>
    </binding>
   </key>

   <key n="113">
    <name>q</name>
    <desc>Decrease heading bug heading.</desc>
    <repeatable type="bool">true</repeatable>
    <binding>
     <command>nasal</command>
     <script>
      var p = "/autopilot/settings/heading-bug-deg";
      var o = getprop(p);
      setprop(p, (o > 0 ? o : 360) - 1);
     </script>
    </binding>
   </key>

   <key n="116">
    <name>t</name>
    <desc>Readout throttle setting.</desc>
    <binding>
     <command>nasal</command>
     <script>speak.throttle()</script>
    </binding>
   </key>

   <key n="117">
    <name>u</name>
    <desc>Readout ground type below and altitude AGL.</desc>
    <binding>
     <command>nasal</command>
     <script>speak.ground_below()</script>
    </binding>
   </key>

   <key n="119">
    <name>w</name>
    <desc>Increase heading bug heading.</desc>
    <repeatable type="bool">true</repeatable>
    <binding>
     <command>nasal</command>
     <script>
      var p = "/autopilot/settings/heading-bug-deg";
      var o = getprop(p);
      setprop(p, (360 > o ? o : 0) + 1);
     </script>
    </binding>
   </key>

  </keyboard>
 </input>

 <nasal>
  <speak>
   <file>Local/speak.nas</file>
  </speak>
 </nasal>

</PropertyList>
