2003-07-12 11:38:12 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<!--
|
2004-08-06 08:49:31 +00:00
|
|
|
|
|
|
|
$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:
|
2004-08-06 08:49:31 +00:00
|
|
|
Axis 2: view direction
|
|
|
|
Axis 3: view elevation
|
2003-07-12 11:38:12 +00:00
|
|
|
|
|
|
|
Button 0: brakes
|
2004-08-06 08:49:31 +00:00
|
|
|
Button 1: center view
|
|
|
|
Button 2: elevator trim up
|
|
|
|
Button 3: elevator trim down
|
2003-07-12 11:38:12 +00:00
|
|
|
************************************************************************
|
2004-08-06 08:49:31 +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">
|
2004-08-06 08:49:31 +00:00
|
|
|
<desc>View Direction</desc>
|
2003-07-12 11:38:12 +00:00
|
|
|
<low>
|
|
|
|
<repeatable type="bool">true</repeatable>
|
|
|
|
<binding>
|
2004-08-06 08:49:31 +00:00
|
|
|
<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>
|
2004-08-06 08:49:31 +00:00
|
|
|
<command>nasal</command>
|
|
|
|
<script>view.panViewDir(-1)</script>
|
2003-07-12 11:38:12 +00:00
|
|
|
</binding>
|
|
|
|
</high>
|
|
|
|
</axis>
|
|
|
|
|
|
|
|
<axis n="3">
|
2004-08-06 08:49:31 +00:00
|
|
|
<desc>View Elevation</desc>
|
2003-07-12 11:38:12 +00:00
|
|
|
<low>
|
|
|
|
<repeatable type="bool">true</repeatable>
|
|
|
|
<binding>
|
2004-08-06 08:49:31 +00:00
|
|
|
<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>
|
2004-08-06 08:49:31 +00:00
|
|
|
<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>
|
2004-08-06 08:49:31 +00:00
|
|
|
<command>nasal</command>
|
|
|
|
<script>
|
|
|
|
interpolate("/controls/gear/brake-left", 1, 0.075);
|
|
|
|
interpolate("/controls/gear/brake-right", 1, 0.075)
|
|
|
|
</script>
|
2003-07-12 11:38:12 +00:00
|
|
|
</binding>
|
|
|
|
<mod-up>
|
|
|
|
<binding>
|
2004-08-06 08:49:31 +00:00
|
|
|
<command>nasal</command>
|
|
|
|
<script>
|
|
|
|
interpolate("/controls/gear/brake-left", 0, 0.075);
|
|
|
|
interpolate("/controls/gear/brake-right", 0, 0.075)
|
|
|
|
</script>
|
2003-07-12 11:38:12 +00:00
|
|
|
</binding>
|
|
|
|
</mod-up>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button n="1">
|
2004-08-06 08:49:31 +00:00
|
|
|
<desc>Center View</desc>
|
2003-07-12 11:38:12 +00:00
|
|
|
<binding>
|
2004-08-06 08:49:31 +00:00
|
|
|
<command>nasal</command>
|
|
|
|
<script>view.resetView()</script>
|
2003-07-12 11:38:12 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button n="2">
|
2004-08-06 08:49:31 +00:00
|
|
|
<desc>Elevator Trim Up</desc>
|
|
|
|
<repeatable type="bool">true</repeatable>
|
2003-07-12 11:38:12 +00:00
|
|
|
<binding>
|
2004-08-06 08:49:31 +00:00
|
|
|
<command>nasal</command>
|
|
|
|
<script>controls.elevatorTrim(-1)</script>
|
2003-07-12 11:38:12 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button n="3">
|
2004-08-06 08:49:31 +00:00
|
|
|
<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 -->
|