<?xml version="1.0" encoding="UTF-8"?>

<!-- ########################################

 # 
 # April 2012 : Modified by PAF team
 # http://equipe-flightgear.forumactif.com

##########################################-->

<PropertyList>

 <path>mags.ac</path>

  <animation>
    <type>range</type>
    <min-m>  0 </min-m>
    <max-m> 45 </max-m>
  </animation>

 <!--<animation>
  <type>material</type>
  <object-name>key</object-name>
  <object-name>start</object-name>
  <object-name>magsw</object-name>
    <condition>
     <not><property>/sim/rendering/rembrandt/enabled</property></not>
    </condition>
    <emission>
      <red>   0.050 </red>
      <green> 0.025 </green>
      <blue>  0.025 </blue>
      <factor-prop>systems/electrical/outputs/instrument-lights</factor-prop>
    </emission>
 </animation>-->

<!--		magneto switch		-->
 <animation>
   <type>pick</type>
   <object-name>click-L</object-name>
   <visible>false</visible>
   <action>
     <name>decrease mags: click</name>
     <button>0</button>
     <binding>
       <command>property-adjust</command>
       <property>/controls/engines/engine/magnetos</property>
       <step>-1</step>
       <min>0</min>
       <max>3</max>
     </binding>
      <binding>
        <command>property-toggle</command>
        <property>sim/model/click</property>
      </binding>
   </action>
   <action>
     <name>decrease mags: scroll</name>
     <button>3</button>
     <binding>
       <command>property-adjust</command>
       <property>/controls/engines/engine/magnetos</property>
       <step>-1</step>
       <min>0</min>
       <max>3</max>
     </binding>
   </action>
   <action>
     <name>increase mags: scroll</name>
     <button>4</button>
     <binding>
       <command>property-adjust</command>
       <property>/controls/engines/engine/magnetos</property>
       <step>1</step>
       <min>0</min>
       <max>3</max>
     </binding>
   </action>
 </animation>

 <animation>
   <type>pick</type>
   <object-name>click-R</object-name>
   <visible>false</visible>
   <action>
     <name>increase mags: click</name>
     <button>0</button>
     <binding>
       <command>property-adjust</command>
       <property>/controls/engines/engine/magnetos</property>
       <step>1</step>
       <min>0</min>
       <max>3</max>
     </binding>
      <binding>
        <command>property-toggle</command>
        <property>sim/model/click</property>
      </binding>
   </action>
   <action>
     <name>decrease mags: scroll</name>
     <button>3</button>
     <binding>
       <command>property-adjust</command>
       <property>/controls/engines/engine/magnetos</property>
       <step>-1</step>
       <min>0</min>
       <max>3</max>
     </binding>
   </action>
   <action>
     <name>increase mags: scroll</name>
     <button>4</button>
     <binding>
       <command>property-adjust</command>
       <property>/controls/engines/engine/magnetos</property>
       <step>1</step>
       <min>0</min>
       <max>3</max>
     </binding>
   </action>
 </animation>

 <!--   key animations  -->   
 <animation>
  <name>mags-key</name>
  <type>rotate</type>
  <object-name>key</object-name>
  <property>/controls/engines/engine/magnetos-pos</property>
  <factor>30</factor>
  <center>
   <x-m>0</x-m>
   <y-m>0</y-m>
   <z-m>0</z-m>
  </center>
  <axis>
   <x>-1</x>
   <y>0</y>
   <z>0</z>
  </axis>
 </animation>
  
</PropertyList>


