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

<PropertyList>

  <path>key.ac</path>

  <animation>
    <object-name>fond</object-name>
    <object-name>key</object-name>
  </animation>

  <animation>
    <type>noshadow</type>
    <object-name>fond</object-name>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>key</object-name>
    <object-name>fond</object-name>
    <action>
      <button>0</button>
      <binding> <!-- Starter -->
        <condition>
          <equals>
            <property>controls/electric/key</property>
            <value>1</value>
          </equals>
        </condition>
        <command>property-assign</command>
        <property>controls/engines/engine/starter</property>
        <value>1</value>
      </binding>
      <mod-up>
        <binding>
          <command>property-assign</command>
          <property>controls/engines/engine/starter</property>
          <value>0</value>
        </binding>
      </mod-up>
      <binding>
        <condition>
          <less-than-equals>
            <property>controls/electric/key</property>
            <value>1</value>
          </less-than-equals>
        </condition>
        <command>property-adjust</command>
        <property>controls/electric/key</property>
        <step>1</step>
        <min>0</min>
        <max>1</max>
        <wrap>0</wrap>
      </binding>
      <binding>
        <command>property-toggle</command>
        <property>sim/model/sound/click</property>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>key</object-name>
    <object-name>fond</object-name>
    <action>
      <button>1</button>
      <binding>
        <command>property-adjust</command>
        <property>controls/electric/key</property>
        <step>-1</step>
        <min>0</min>
        <max>1</max>
        <wrap>false</wrap>
      </binding>
      <binding>
        <command>property-toggle</command>
        <property>sim/model/sound/click</property>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>key</object-name>
    <!--<property>controls/electric/key-pos</property>-->
    <property>sim/multiplay/generic/int[10]</property>
    <factor>-30</factor>
    <axis>
      <x>1</x>
      <y>0</y>
      <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>key</object-name>
    <property>controls/engines/engine/starter</property>
    <factor>-30</factor>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- effects inspired from i16 and Diamond D42 ... -->
  <animation>
    <type>rotate</type>
    <object-name>anneau</object-name>
    <object-name>cle2</object-name>
    <property>/instrumentation/slip-skid-ball/indicated-slip-skid</property>
    <factor>-5.7</factor>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>anneau</object-name>
    <object-name>cle2</object-name>
    <property>/orientation/pitch-deg</property>
    <interpolation>
      <entry><ind> -180 </ind><dep>   12 </dep></entry>
      <entry><ind>  -12 </ind><dep>   12 </dep></entry>
      <entry><ind>    0 </ind><dep>    0 </dep></entry>
      <entry><ind>   12 </ind><dep>  -12 </dep></entry>
      <entry><ind>  180 </ind><dep> -180 </dep></entry>
    </interpolation>
    <center>
      <x-m> 0.032 </x-m>
      <y-m> 0.000 </y-m>
      <z-m> 0.000 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>anneau</object-name>
    <object-name>cle2</object-name>
    <property>/orientation/roll-deg</property>
    <interpolation>
      <entry><ind> -180 </ind><dep>  180 </dep></entry>
      <entry><ind>  -12 </ind><dep>   12 </dep></entry>
      <entry><ind>    0 </ind><dep>    0 </dep></entry>
      <entry><ind>   12 </ind><dep>  -12 </dep></entry>
      <entry><ind>  180 </ind><dep> -180 </dep></entry>
    </interpolation>
    <center>
      <x-m> 0.032 </x-m>
      <y-m> 0.000 </y-m>
      <z-m> 0.000 </z-m>
    </center>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!-- TEXT OSG -->
  <text>
    <name>textosg</name>
    <type type="string">literal</type>
    <text type="string">Starter</text>
    <draw-text type="bool">true</draw-text>
    <font>Helvetica.txf</font>
    <character-size type="double">0.014</character-size>
    <character-aspect-ratio type="double">1.0</character-aspect-ratio>
    <axis-alignment>yz-plane</axis-alignment>
    <max-height>0.06</max-height>
    <max-width>0.05</max-width>
    <font-resolution>
      <width type="int">64</width>
      <height type="int">64</height>
    </font-resolution>
    <alignment>center-center</alignment>
    <offsets>
      <x-m>  0.005 </x-m>
      <y-m>  0.009 </y-m>
      <z-m>  0.020 </z-m>
    </offsets>
  </text>

  <animation>
    <type>material</type>
    <object-name>textosg</object-name>
    <emission>
      <red>   0.8 </red>
      <green> 0.8 </green>
      <blue>  0.0 </blue>
    </emission>
  </animation>

  <animation>
    <type>select</type>
    <object-name>textosg</object-name>
    <condition>
      <property>sim/panel-hotspots</property>
    </condition>
  </animation>

</PropertyList>
