1
0
Fork 0
fgdata/Input/Joysticks/ThrustMaster/FCS.xml

135 lines
2.8 KiB
XML
Raw Normal View History

2003-07-12 11:38:12 +00:00
<?xml version="1.0"?>
<!--
$Id$
2003-07-12 11:38:12 +00:00
************************************************************************
Setup for a Thrustmaster FCS-compatible joystick with
one stick, one digital hat, and four buttons.
Layout:
Axis 0: ailerons
Axis 1: elevator
Hat:
Axis 2: view direction
Axis 3: view elevation
2003-07-12 11:38:12 +00:00
Button 0: brakes
Button 1: center view
Button 2: elevator trim up
Button 3: elevator trim down
2003-07-12 11:38:12 +00:00
************************************************************************
30-Jul-2004
Eric Hathaway <hathaway@uplink.net> : "Nasal-ized" the joystick configuration,
drawing ideas from the Cyborg-Gold-3d-USB configuration file. Also changed
some of the bindings, so the joystick setup is more like the default
four-axis-joystick config.
2003-07-12 11:38:12 +00:00
-->
<PropertyList>
<name>Analog 2-axis 4-button 1-hat FCS joystick</name>
<axis n="0">
<desc>Aileron</desc>
<binding>
<command>property-scale</command>
<property>/controls/flight/aileron</property>
<power type="double">2</power>
</binding>
</axis>
<axis n="1">
<desc>Elevator</desc>
<binding>
<command>property-scale</command>
<property>/controls/flight/elevator</property>
<factor type="double">-1.0</factor>
<power type="double">2</power>
</binding>
</axis>
<axis n="2">
<desc>View Direction</desc>
2003-07-12 11:38:12 +00:00
<low>
<repeatable type="bool">true</repeatable>
<binding>
<command>nasal</command>
<script>view.panViewDir(1)</script>
2003-07-12 11:38:12 +00:00
</binding>
</low>
<high>
<repeatable type="bool">true</repeatable>
<binding>
<command>nasal</command>
<script>view.panViewDir(-1)</script>
2003-07-12 11:38:12 +00:00
</binding>
</high>
</axis>
<axis n="3">
<desc>View Elevation</desc>
2003-07-12 11:38:12 +00:00
<low>
<repeatable type="bool">true</repeatable>
<binding>
<command>nasal</command>
<script>view.panViewPitch(-1)</script>
2003-07-12 11:38:12 +00:00
</binding>
</low>
<high>
<repeatable type="bool">true</repeatable>
<binding>
<command>nasal</command>
<script>view.panViewPitch(1)</script>
2003-07-12 11:38:12 +00:00
</binding>
</high>
</axis>
<button n="0">
<desc>Brakes</desc>
<binding>
<command>nasal</command>
<script>controls.applyBrakes(1)</script>
2003-07-12 11:38:12 +00:00
</binding>
<mod-up>
<binding>
<command>nasal</command>
<script>controls.applyBrakes(0)</script>
2003-07-12 11:38:12 +00:00
</binding>
</mod-up>
</button>
<button n="1">
<desc>Center View</desc>
2003-07-12 11:38:12 +00:00
<binding>
<command>nasal</command>
<script>view.resetView()</script>
2003-07-12 11:38:12 +00:00
</binding>
</button>
<button n="2">
<desc>Elevator Trim Up</desc>
<repeatable type="bool">true</repeatable>
2003-07-12 11:38:12 +00:00
<binding>
<command>nasal</command>
<script>controls.elevatorTrim(-1)</script>
2003-07-12 11:38:12 +00:00
</binding>
</button>
<button n="3">
<desc>Elevator Trim Down</desc>
<repeatable type="bool">true</repeatable>
<binding>
<command>nasal</command>
<script>controls.elevatorTrim(1)</script>
2003-07-12 11:38:12 +00:00
</binding>
</button>
</PropertyList>
<!-- end of FCS.xml -->