I have been playing around with my control setup and recently modified an old 
joystick to work as a throttle quadrant (has throttle, mixture and pitch 
controls plus a starter button).  This freed up some buttons and one axis 
(was throttle) on my main stick and I am in the process of remapping these 
and I would like to map these to a number of things many of which I have been 
able to figure out.  But I have run into some things that I am not sure how 
to handle.

The first issue is how the boost control is set up.  I notice that in the P51,  
Corsair and the Beaufighter that these are setup differently but not much 
differently.   Just enough that it looks like anything I setup in my joystick 
configuration will be correct for only one aircraft.  This is probably the 
case with other aircraft as well.  Is there a simple way to map a button on 
the stick to toggle this setting correctly for all aircraft types?  

Second the torpedo in the Beaufighter uses what appears to be a standard 
property for releasing bombs and torpedos :

<property>/controls/armament/station/release-all</property>

Which seems like it should work for any aircraft that has either bombs or 
torpedoes.  This was easy to setup and it worked in my testing.  But the 
rockets use a custom nasal script:

    <key n="72">
        <name>H</name>
        <desc>Fire Rockets</desc>
          <binding n="0">
          <command>nasal</command>
          <script>beaufighter.fire_rp()</script>
        </binding>
      </key>

and the A10 also uses a nasal script for it's canon:

   <key n="101">
        <name>e</name>
        <desc>Fire GAU-8/A cannon</desc>
        <binding>
          <command>nasal</command>
          <script>A10.fire_gau8a()</script>
        </binding>
        <mod-up>
          <binding>
            <command>nasal</command>
            <script>A10.cfire_gau8a()</script>
          </binding>
        </mod-up>
      </key>

There are perhaps other aircraft that also have guns, missiles or other 
armaments but I have not located these yet so I don't know how much variation 
there is in how this is handled.  But my real question is.  How are these 
mapped to a joystick/controller button in such a way that it works for a wide 
range of aircraft or even for that matter for a single aircraft?

Hal   

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Flightgear-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-users

Reply via email to