Here is a config for the Saitek Pro Flight Yoke (including the throttle 
quadrant).
Not all buttons are used (yet). For documentation see the .xml

regards,
Oliver
<?xml version="1.0"?>
<!-- Saitek Pro Flight Yoke

  Copyright (C) 2008  Oliver Schroeder  (fgfs(at)o-schroeder.de)
  This file is released under the GPL license.
-->
<PropertyList>
 <name>Saitek Saitek Pro Flight Yoke</name>
 <axis n="0">
  <desc>Aileron</desc>
  <binding>
   <command>property-scale</command>
   <property>/controls/flight/aileron</property>
   <squared type="bool">true</squared>
  </binding>
 </axis>
 <axis n="1">
  <desc>Elevator</desc>
  <binding>
   <command>property-scale</command>
   <property>/controls/flight/elevator</property>
   <factor type="double">-1.0</factor>
   <squared type="bool">true</squared>
  </binding>
 </axis>
 <!-- Throttle Quadrant -->
 <axis n="2"> 
  <desc>Throttle</desc>
  <binding>
   <command>nasal</command>
   <script>controls.throttleAxis()</script>
  </binding>
 </axis>
 <axis n="3">
  <desc>Prop Pitch</desc>
  <binding>
   <command>nasal</command>
   <script>controls.propellerAxis()</script>
  </binding>
 </axis>
 <axis n="4">
  <desc>Mixture </desc>
  <binding>
   <command>nasal</command>
   <script>controls.mixtureAxis()</script>
  </binding>
 </axis>

 <!-- Buttons on the Yoke -->
 <button n="5"> <!-- Labled as B1 -->
  <desc>Elevator trim up</desc>
  <repeatable>true</repeatable>
  <binding>
   <command>nasal</command>
   <script>controls.elevatorTrim(-0.75)</script>
  </binding>
 </button>
 <button n="4"> <!-- Labled as B2 -->
  <desc>Elevator trim down</desc>
  <repeatable>true</repeatable>
  <binding>
   <command>nasal</command>
   <script>controls.elevatorTrim(0.75)</script>
  </binding>
 </button>

 <button n="6"> <!-- Labled as C1 -->
  <desc>Aileron trim left</desc>
  <repeatable>true</repeatable>
  <binding>
   <command>nasal</command>
   <script>controls.aileronTrim(-0.75)</script>
  </binding>
 </button>
 <button n="7"> <!-- Labled as C2 -->
  <desc>Aileron trim right</desc>
  <repeatable>true</repeatable>
  <binding>
   <command>nasal</command>
   <script>controls.aileronTrim(0.75)</script>
  </binding>
 </button>

  <!-- Buttons on the throttle Quadrant -->
 <button n="14"> <!-- Labled as T1 -->
  <desc>Flaps up</desc>
  <repeatable>false</repeatable>
  <binding>
   <command>nasal</command>
   <script>controls.flapsDown(-1)</script>
  </binding>
  <mod-up>
   <binding>
    <command>nasal</command>
    <script>controls.flapsDown(0)</script>
   </binding>
  </mod-up>
 </button>
 <button n="15"> <!-- Labled as T2 -->
  <desc>Flaps down</desc>
  <repeatable>false</repeatable>
  <binding>
   <command>nasal</command>
   <script>controls.flapsDown(1)</script>
  </binding>
  <mod-up>
   <binding>
    <command>nasal</command>
    <script>controls.flapsDown(0)</script>
   </binding>
  </mod-up>
 </button>
 <button n="16"> <!-- Labled as T3 -->
  <desc>Gear up</desc>
  <repeatable>false</repeatable>
  <binding>
   <command>nasal</command>
   <script>controls.gearDown(-1)</script>
  </binding>
 </button>
 <button n="17"> <!-- Labled as T4 -->
  <desc>Gear down</desc>
  <repeatable>false</repeatable>
  <binding>
   <command>nasal</command>
   <script>controls.gearDown(1)</script>
  </binding>
 </button>
</PropertyList>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to