Hello
I've found it confusing when a single input property - namely rudder -
can be controlled from more than one joystick (joystick with "Z" axis
and rudder pedals). It's very easy to accidentally rotate joystick which
ruins preset rudder control from pedals.
To solve this confusion I propose a following solution:
- create new "switch" property: /input/joysticks/setup/have-pedals
- rudder pedals will set this property to 1
- if joystick has rudder control it will be used only if there is no
rudder pedals connected
I've made a small patch to Saitek joysticks implementing above mentioned
idea. If you like this idea I'll port it to other joysticks.
Best regards,
Pawel
diff -r 831f9a142e8a Input/Joysticks/Saitek/Pro-Flight-Rudder-Pedals.xml
--- a/Input/Joysticks/Saitek/Pro-Flight-Rudder-Pedals.xml Wed Oct 07
23:21:48 2009 +0200
+++ b/Input/Joysticks/Saitek/Pro-Flight-Rudder-Pedals.xml Wed Nov 18
21:06:06 2009 +0100
@@ -19,6 +19,12 @@
<name>Saitek Pro Flight Rudder Pedals</name>
<name>Saitek Saitek Pro Flight Rudder Pedals</name>
+ <nasal>
+ <script>
+ setprop("/input/joysticks/setup/have-pedals", "1");
+ </script>
+ </nasal>
+
<axis n="0">
<desc>Brake left</desc>
<binding>
diff -r 831f9a142e8a Input/Joysticks/Saitek/X52-pro.xml
--- a/Input/Joysticks/Saitek/X52-pro.xml Wed Oct 07 23:21:48 2009 +0200
+++ b/Input/Joysticks/Saitek/X52-pro.xml Wed Nov 18 21:06:06 2009 +0100
@@ -153,6 +153,11 @@
<axis n="5">
<desc>Rudder</desc>
<binding>
+ <condition>
+ <not>
+
<property>/input/joysticks/setup/have-pedals</property>
+ </not>
+ </condition>
<command>property-scale</command>
<property>/controls/flight/rudder</property>
</binding>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel