1
0
Fork 0

Eric L. Hathaway:

The following patch updates the ThrustMaster FCS joystick configuration.  I have "Nasal-ized" the joystick bindings, drawing ideas from the Cyborg-Gold-3d-USB configuration file.  I also changed some of the bindings, so the joystick setup is more like the default four-axis-joystick config.  When I submitted the original config file, I had the hat switch bound to the rudder and elevator trim.  Since the vast majority (all?) of the other joystick configs use the hat switch to control view direction, I think it would be best for the defaults for this joystick to conform to the rest in order to obey the "principle of least surprise" for the unsuspecting user.
This commit is contained in:
ehofman 2004-08-06 08:49:31 +00:00
parent 016238f66a
commit 8ce6031f23

View file

@ -1,6 +1,9 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<!-- <!--
$Id$
************************************************************************ ************************************************************************
Setup for a Thrustmaster FCS-compatible joystick with Setup for a Thrustmaster FCS-compatible joystick with
one stick, one digital hat, and four buttons. one stick, one digital hat, and four buttons.
@ -10,14 +13,21 @@ Layout:
Axis 1: elevator Axis 1: elevator
Hat: Hat:
Axis 2: rudder Axis 2: view direction
Axis 3: elevator trim Axis 3: view elevation
Button 0: brakes Button 0: brakes
Button 1: center rudder Button 1: center view
Button 2: flaps up Button 2: elevator trim up
Button 3: flaps down Button 3: elevator trim down
************************************************************************ ************************************************************************
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.
--> -->
<PropertyList> <PropertyList>
@ -44,41 +54,37 @@ Layout:
</axis> </axis>
<axis n="2"> <axis n="2">
<desc>Rudder</desc> <desc>View Direction</desc>
<low> <low>
<repeatable type="bool">true</repeatable> <repeatable type="bool">true</repeatable>
<binding> <binding>
<command>property-adjust</command> <command>nasal</command>
<property>/controls/flight/rudder</property> <script>view.panViewDir(1)</script>
<step type="double">-0.05</step>
</binding> </binding>
</low> </low>
<high> <high>
<repeatable type="bool">true</repeatable> <repeatable type="bool">true</repeatable>
<binding> <binding>
<command>property-adjust</command> <command>nasal</command>
<property>/controls/flight/rudder</property> <script>view.panViewDir(-1)</script>
<step type="double">0.05</step>
</binding> </binding>
</high> </high>
</axis> </axis>
<axis n="3"> <axis n="3">
<desc>Elevator trim</desc> <desc>View Elevation</desc>
<low> <low>
<repeatable type="bool">true</repeatable> <repeatable type="bool">true</repeatable>
<binding> <binding>
<command>property-adjust</command> <command>nasal</command>
<property>/controls/flight/elevator-trim</property> <script>view.panViewPitch(-1)</script>
<step type="double">0.001</step>
</binding> </binding>
</low> </low>
<high> <high>
<repeatable type="bool">true</repeatable> <repeatable type="bool">true</repeatable>
<binding> <binding>
<command>property-adjust</command> <command>nasal</command>
<property>/controls/flight/elevator-trim</property> <script>view.panViewPitch(1)</script>
<step type="double">-0.001</step>
</binding> </binding>
</high> </high>
</axis> </axis>
@ -86,53 +92,46 @@ Layout:
<button n="0"> <button n="0">
<desc>Brakes</desc> <desc>Brakes</desc>
<binding> <binding>
<command>property-assign</command> <command>nasal</command>
<property>/controls/gear/brake-left</property> <script>
<value type="double">1.0</value> interpolate("/controls/gear/brake-left", 1, 0.075);
</binding> interpolate("/controls/gear/brake-right", 1, 0.075)
<binding> </script>
<command>property-assign</command>
<property>/controls/gear/brake-right</property>
<value type="double">1.0</value>
</binding> </binding>
<mod-up> <mod-up>
<binding> <binding>
<command>property-assign</command> <command>nasal</command>
<property>/controls/gear/brake-left</property> <script>
<value type="double">0.0</value> interpolate("/controls/gear/brake-left", 0, 0.075);
</binding> interpolate("/controls/gear/brake-right", 0, 0.075)
<binding> </script>
<command>property-assign</command>
<property>/controls/gear/brake-right</property>
<value type="double">0.0</value>
</binding> </binding>
</mod-up> </mod-up>
</button> </button>
<button n="1"> <button n="1">
<desc>Center rudder</desc> <desc>Center View</desc>
<binding> <binding>
<command>property-assign</command> <command>nasal</command>
<property>/controls/flight/rudder</property> <script>view.resetView()</script>
<value type="double">0.0</value>
</binding> </binding>
</button> </button>
<button n="2"> <button n="2">
<desc>Flaps up</desc> <desc>Elevator Trim Up</desc>
<repeatable type="bool">true</repeatable>
<binding> <binding>
<command>property-adjust</command> <command>nasal</command>
<property>/controls/flight/flaps</property> <script>controls.elevatorTrim(-1)</script>
<step type="double">-0.34</step>
</binding> </binding>
</button> </button>
<button n="3"> <button n="3">
<desc>Flaps down</desc> <desc>Elevator Trim Down</desc>
<binding> <repeatable type="bool">true</repeatable>
<command>property-adjust</command> <binding>
<property>/controls/flight/flaps</property> <command>nasal</command>
<step type="double">0.34</step> <script>controls.elevatorTrim(1)</script>
</binding> </binding>
</button> </button>