Hi all,
There are some aircraft that more or less require fast and accurate control of subsets of the engines (e.g. the side engines on ZLT-NT). For people without several joystick throttle axes (I have five now :) the keyboard engine selection is vital.
It is currently only possible to select one engine or all. This update adds the ability to select subsets of the engines.
shift + 1 (2, 3, 4) selects engine 1 (2 etc) just as before, andshift+ctrl + 1 (2, 3, 4) selects engine 1 (2 etc) in addition to any previously selected engine.
So to select engines 1 and 2 the user presses shift + 1 and then shift + ctrl + 2. Selecting both outboard engines on a 4 engine aircraft would be shift 1 and then shift + ctrl + 4.It might also make sense to add shift + 5, 6, 7, 8, 9 ,0 to keyboard.xml (if possible) since we have aircraft with that many (and more!) engines around.
Cheers, Anders -- --------------------------------------------------------------------------- Anders Gidenstam WWW: http://www.gidenstam.org/FlightGear/
Index: keyboard.xml =================================================================== RCS file: /var/cvs/FlightGear-0.9/data/keyboard.xml,v retrieving revision 1.120 diff -u -p -r1.120 keyboard.xml --- keyboard.xml 14 Mar 2009 20:56:06 -0000 1.120 +++ keyboard.xml 23 Aug 2009 20:49:59 -0000 @@ -302,7 +302,13 @@ top down before the key bindings are par <desc>Select first engine</desc> <binding> <command>nasal</command> - <script>controls.selectEngine(0)</script> + <script> + if (ctrl.getBoolValue()) { + controls.selectEngines(1, 0); + } else { + controls.selectEngine(0); + } + </script> </binding> </key> @@ -311,7 +317,13 @@ top down before the key bindings are par <desc>Select third engine</desc> <binding> <command>nasal</command> - <script>controls.selectEngine(2)</script> + <script> + if (ctrl.getBoolValue()) { + controls.selectEngines(1, 2); + } else { + controls.selectEngine(2); + } + </script> </binding> </key> @@ -320,7 +332,13 @@ top down before the key bindings are par <desc>Select fourth engine</desc> <binding> <command>nasal</command> - <script>controls.selectEngine(3)</script> + <script> + if (ctrl.getBoolValue()) { + controls.selectEngines(1, 3); + } else { + controls.selectEngine(3); + } + </script> </binding> </key> @@ -603,7 +621,13 @@ top down before the key bindings are par <desc>Select second engine</desc> <binding> <command>nasal</command> - <script>controls.selectEngine(1)</script> + <script> + if (ctrl.getBoolValue()) { + controls.selectEngines(1, 1); + } else { + controls.selectEngine(1); + } + </script> </binding> </key>
------------------------------------------------------------------------------ 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 Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel