Mike Rawlins wrote:
> Paulo da Silva wrote:
> > Is it possible to make the "5" key to center
> > only the rudder/ailerons, *NOT*  the elevators?
> > How?
>
> <script>controls.centerFlightControls()</script>
>
> for the 5 key binding suggests that centering occurs
> through a script.  I don't know where the script
> lives, so can't say for sure how to make the
> modification.

In general, any Nasal function of the form XXXXX.whatever() can be
found in a file called XXXXX.nas in the "Nasal" directory of your base
package.  Here is the relevant definition:

centerFlightControls = func {
    setprop("/controls/flight/elevator", 0);
    setprop("/controls/flight/aileron", 0);
    setprop("/controls/flight/rudder", 0);
}

So, if you want to modify this for all joysticks, you could just
comment out the lines you don't like.

But as suggested, flying with the mouse or just buying a cheap USB
joystick are better options. :)

Andy

_______________________________________________
Flightgear-users mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-users
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to