1
0
Fork 0
fgdata/Input/Joysticks/ThrustMaster/Top-Gun-Fox2-Pro-USB.xml

176 lines
4.1 KiB
XML
Raw Normal View History

<?xml version="1.0"?>
<!--
************************************************************************
*
* Bindings or Thrustmaster Top Gun Fox 2 Pro USB joystick (see joysticks.xml in fgfsbase dir)
*
*
* Axis 0: ailerons
* Axis 1: elevator
* Axis 2: rudder (twistable stick)
* Axis 3: throttle
* Axis 4: Horizontal Hat
* Axis 5: Vertical Hat
*
* Button 0: (Trigger) elevator trim down
* Button 1: (yellow and black button) all brakes
* Button 2: (side button above trigger) gear up/down
* Button 3: (right button, next to yellow and black button) elevator trim up
* Button 4: (outside bottom button) flap up
* Button 5: (middle bottom button) center rudder
* Button 6: (inside bottom button) flap down
* Borrowed heavily from sidewinder.xml
* Thank you, sidewinder.xml!
************************************************************************
-->
<PropertyList>
<name>Top Gun Fox 2 Pro </name>
<name>THRUSTMASTER Top Gun Fox 2 Pro </name>
<axis>
<number>
<unix>0</unix>
<windows>0</windows>
<mac>0</mac>
</number>
<desc>Aileron</desc>
<dead-band type="double">0.02</dead-band>
<binding>
<command>property-scale</command>
<property>/controls/flight/aileron</property>
<offset type="double">+0.0</offset>
<factor type="double">+1.0</factor>
</binding>
</axis>
<axis>
<number>
<unix>1</unix>
<windows>1</windows>
<mac>1</mac>
</number>
<desc>Elevator</desc>
<dead-band type="double">0.02</dead-band>
<binding>
<command>property-scale</command>
<property>/controls/flight/elevator</property>
<offset type="double">+0.0</offset>
<factor type="double">-1.0</factor>
</binding>
</axis>
<axis>
<number>
<unix>2</unix>
<windows>3</windows>
<mac>2</mac>
</number>
<desc>Rudder</desc>
<dead-band type="double">0.02</dead-band>
<binding>
<command>property-scale</command>
<property>/controls/flight/rudder</property>
<offset type="double">0.0</offset>
<factor type="double">1.0</factor>
</binding>
</axis>
<axis>
<desc>Throttle</desc>
<number>
<unix>3</unix>
<windows>2</windows>
</number>
<binding>
<command>nasal</command>
<script>controls.throttleAxis()</script>
</binding>
</axis>
<button n="0">
<desc>Elevator trim down</desc>
<repeatable type="bool">true</repeatable>
<binding>
<command>nasal</command>
<script>controls.elevatorTrim(0.75)</script>
</binding>
</button>
<button n="1">
<desc>Brakes</desc>
<binding>
<command>property-assign</command>
<property>/controls/gear/brake-left</property>
<value type="double">1.0</value>
</binding>
<binding>
<command>property-assign</command>
<property>/controls/gear/brake-right</property>
<value type="double">1.0</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>/controls/gear/brake-left</property>
<value type="double">0.0</value>
</binding>
<binding>
<command>property-assign</command>
<property>/controls/gear/brake-right</property>
<value type="double">0.0</value>
</binding>
</mod-up>
</button>
<button n="2">
<repeatable>false</repeatable>
<binding>
<command>property-assign</command>
<property>/controls/gear/gear-down</property>
<value>true</value>
</binding>
</button>
<button n="3">
<desc>Elevator trim up</desc>
<repeatable type="bool">true</repeatable>
<binding>
<command>nasal</command>
<script>controls.elevatorTrim(-0.75)</script>
</binding>
</button>
<button n="4">
<desc>Flaps up</desc>
<repeatable>false</repeatable>
<binding>
<command>nasal</command>
<script>controls.stepFlaps(-1)</script>
</binding>
</button>
<button n="5">
<desc>Center rudder</desc>
<repeatable>false</repeatable>
<binding>
<command>property-adjust</command>
<property>/controls/flight/rudder</property>
<step type="double">0.0</step>
</binding>
</button>
<button n="6">
<desc>Flaps down</desc>
<repeatable>false</repeatable>
<binding>
<command>nasal</command>
<script>controls.stepFlaps(1)</script>
</binding>
</button>
</PropertyList>
<!-- end of TGF2PROUSB.xml -->