On Mon, 2009-11-02 at 10:38 -0800, Ed Greenberg wrote: > I have a user interface suggestion for the FlightGear simulator, and I'm > not sure if it goes here or in devel. I'm posting it below, but if it > needs to go somewhere else, or if it's not welcome at all, please let me > know (nicely.) > > I suggest that the numeric-5 control (center controls) only center the > Ailerons and perhaps rudder. Centering the elevators and elevator trim > can be disastrous. If aileron and rudder trim are available, these > should not be centered. > > This would help with keyboard flying. > > Thanks, > </edg>
I haven't flown keyboard in years. :D Looking at the code, 5 shouldn't center any of the trims, just the stick and rudder... If you'd like to change this yourself to see how it works out, you have two options: 1. edit your keyboard.xml file to only center the controls you want... Search for key n="53" in the file and then change it to look like below. Everything between <key n="53"> and </key>. Then remove the <binding> ... </binding> sections you don't want. <key n="53"> <name>Keypad 5</name> <desc>Center aileron, elevator, and rudder.</desc> <binding> <command>property-assign</command> <property>/controls/flight/aileron</property> <value type="double">0.0</value> </binding> <binding> <command>property-assign</command> <property>/controls/flight/elevator</property> <value type="double">0.0</value> </binding> <binding> <command>property-assign</command> <property>/controls/flight/rudder</property> <value type="double">0.0</value> </binding> </key> 2. edit Nasal/controls.nas to remove the axises you don't want to change: e.g. change var centerFlightControls = func { setprop("/controls/flight/elevator", 0); setprop("/controls/flight/aileron", 0); setprop("/controls/flight/rudder", 0); } to var centerFlightControls = func { setprop("/controls/flight/aileron", 0); } ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Flightgear-users mailing list Flightgear-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-users