From 69a6a69cf5ead4c7a99d31e25a32211fe855a7cc Mon Sep 17 00:00:00 2001 From: ehofman <ehofman> Date: Tue, 1 Apr 2003 17:37:36 +0000 Subject: [PATCH] Refference the new options layout in the documentation --- Docs/README.Joystick.html | 52 +++++++++++++++++++-------------------- Docs/README.xmlpanel.html | 2 +- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/Docs/README.Joystick.html b/Docs/README.Joystick.html index 66815a4bd..b26f9c7fa 100644 --- a/Docs/README.Joystick.html +++ b/Docs/README.Joystick.html @@ -342,7 +342,7 @@ Here's a sample Joystick axis declaration in XML: <desc>Aileron</desc> <!-- descriptive name (optional) --> <binding> <!-- open a container for the binding --> <command>property-scale</command> <!-- pick a command --> - <property>/controls/aileron</property> <!-- target a property --> + <property>/controls/flight/aileron</property> <!-- target a property --> </binding> <!-- closing tag for binding --> </axis> <!-- closing tag for axis --> </PRE> @@ -356,7 +356,7 @@ command-line option equivalent of this declaration (leaving out the </P> <PRE> --prop:/input/joysticks/js[0]/axis[0]/binding/command=property-scale - --prop:/input/joysticks/js[0]/axis[0]/binding/property=/controls/aileron + --prop:/input/joysticks/js[0]/axis[0]/binding/property=/controls/flight/aileron </PRE> <br> <P> @@ -378,7 +378,7 @@ steps and gives a smoother action than a plain float. <!-- See important note about dead-band below --> <binding> <command>property-scale</command> - <property>/controls/throttle</property> + <property>/controls/engines/engine[0]/throttle</property> <offset type="double">-1.0</offset> <factor type="double">-0.5</factor> </binding> @@ -387,7 +387,7 @@ steps and gives a smoother action than a plain float. or --prop:/input/joysticks/js[0]/axis[2]/binding/command=property-scale - --prop:/input/joysticks/js[0]/axis[2]/binding/property=/controls/throttle + --prop:/input/joysticks/js[0]/axis[2]/binding/property=/controls/engiens/engine[0]/throttle --prop:/input/joysticks/js[0]/axis[2]/binding/offset=-1.0 --prop:/input/joysticks/js[0]/axis[2]/binding/factor=-0.5 </PRE> @@ -445,7 +445,7 @@ Here's a sample joystick button declaration in XML: <repeatable>true</repeatable> <!-- Ok, repeatable is outside the command manager too --> <binding> <!-- Open the "binding" node of the tree--> <command>property-adjust</command> <!-- pick a command type to bind --> - <property>/controls/elevator-trim</property> <!-- target a property --> + <property>/controls/flight/elevator-trim</property> <!-- target a property --> <step type="double">0.001</step> </binding> </button> @@ -458,7 +458,7 @@ In command-line option syntax, this would appear as <PRE> --prop:/input/joysticks/js[0]/button[1]/repeatable=true <-- See? no 'binding' --> --prop:/input/joysticks/js[0]/button[1]/binding/command=property-adjust - --prop:/input/joysticks/js[0]/button[1]/binding/property=/controls/elevator-trim + --prop:/input/joysticks/js[0]/button[1]/binding/property=/controls/flight/elevator-trim --prop:/input/joysticks/js[0]/button[1]/binding//step=0.001 </PRE> <br> @@ -473,13 +473,13 @@ button: <desc>Left brake</desc> <binding> <command>property-assign</command> - <property>/controls/brakes[0]</property> + <property>/controls/gear/wheel[0]/brake</property> <value type="double">1.0</value> <!-- brakes are a toggle so 1.0 represents on --> </binding> <mod-up> <!-- it's not a parking brake so we need to release it --> <binding> <command>property-assign</command> - <property>/controls/brakes[0]</property> + <property>/controls/gear/wheel[0]/brake</property> <value type="double">0.0</value> <!-- 1.0 is on so 0.0 is off, right? --> </binding> </mod-up> @@ -500,10 +500,10 @@ Here's the command-line equivalent: </p> <PRE> --prop:/input/joysticks/js[0]/button[4]/binding/command=property-assign - --prop:/input/joysticks/js[0]/button[4]/binding/property=/controls/brakes[0] + --prop:/input/joysticks/js[0]/button[4]/binding/property=/controls/gear/wheel[0]/brake --prop:/input/joysticks/js[0]/button[4]/binding/value=1.0 --prop:/input/joysticks/js[0]/button[4]/mod-up/binding/command=property-assign - --prop:/input/joysticks/js[0]/button[4]/mod-up/binding/property=/controls/brakes[0] + --prop:/input/joysticks/js[0]/button[4]/mod-up/binding/property=/controls/gear/wheel[0]/brake --prop:/input/joysticks/js[0]/button[4]/mod-up/binding/value=0.0 </PRE> <br> @@ -518,33 +518,33 @@ button 0 is pressed, and releases all three when button 0 is released: <desc>Brakes</desc> <binding> <command>property-assign</command> - <property>/controls/brakes[0]</property> + <property>/controls/gear/wheel[0]/brake</property> <value type="double">1.0</value> </binding> <binding> <command>property-assign</command> - <property>/controls/brakes[1]</property> + <property>/controls/gear/wheel[1]/brake</property> <value type="double">1.0</value> </binding> <binding> <command>property-assign</command> - <property>/controls/brakes[2]</property> + <property>/controls/gear/wheel[2]/brake</property> <value type="double">1.0</value> </binding> <mod-up> <binding> <command>property-assign</command> - <property>/controls/brakes[0]</property> + <property>/controls/gear/wheel[0]/brake</property> <value type="double">0.0</value> </binding> <binding> <command>property-assign</command> - <property>/controls/brakes[1]</property> + <property>/controls/gear/wheel[1]/brake</property> <value type="double">0.0</value> </binding> <binding> <command>property-assign</command> - <property>/controls/brakes[2]</property> + <property>/controls/gear/wheel[2]/brake</property> <value type="double">0.0</value> </binding> </mod-up> @@ -558,13 +558,13 @@ XML will handle this automatically): </P> <PRE> --prop:/input/joysticks/button[0]/binding[0]/command=property-assign - --prop:/input/joysticks/button[0]/binding[0]/property=/controls/brakes[0] + --prop:/input/joysticks/button[0]/binding[0]/property=/controls/gear/wheel[0]/brake --prop:/input/joysticks/button[0]/binding[0]/value=1.0 --prop:/input/joysticks/button[0]/binding[1]/command=property-assign - --prop:/input/joysticks/button[0]/binding[1]/property=/controls/brakes[1] + --prop:/input/joysticks/button[0]/binding[1]/property=/controls/gear/wheel[1]/brake --prop:/input/joysticks/button[0]/binding[1]/value=1.0 --prop:/input/joysticks/button[0]/binding[2]/command=property-assign - --prop:/input/joysticks/button[0]/binding[2]/property=/controls/brakes[2] + --prop:/input/joysticks/button[0]/binding[2]/property=/controls/gear/wheel[2]/brake --prop:/input/joysticks/button[0]/binding[2]/value=1.0 --prop:/input/joysticks/button[0]/mod-up/binding[0]/command=property-assign --prop:/input/joysticks/button[0]/mod-up/binding[0]/property=brakes[0] @@ -613,12 +613,12 @@ Here's an example of how to use an axis to adjust the elevator trim: <PRE> --prop:/input/joysticks/js/axis[1]/low/repeatable=true --prop:/input/joysticks/js/axis[1]/low/binding/command=property-adjust - --prop:/input/joysticks/js/axis[1]/low/binding/property=/controls/elevator-trim + --prop:/input/joysticks/js/axis[1]/low/binding/property=/controls/flight/elevator-trim --prop:/input/joysticks/js/axis[1]/low/binding/step=0.001 --prop:/input/joysticks/js/axis[1]/high/repeatable=true --prop:/input/joysticks/js/axis[1]/high/binding/command=property-adjust - --prop:/input/joysticks/js/axis[1]/high/binding/property=/controls/elevator-trim + --prop:/input/joysticks/js/axis[1]/high/binding/property=/controls/flight/elevator-trim --prop:/input/joysticks/js/axis[1]/high/binding/step=-0.001 </PRE> <br> @@ -709,13 +709,13 @@ just as with the joystick: <desc>Left brake</desc> <binding> <command>property-assign</command> - <property>/controls/brakes[0]</property> + <property>/controls/gear/wheel[0]/brake</property> <value type="double">1.0</value> </binding> <mod-up> <binding> <command>property-assign</command> - <property>/controls/brakes[0]</property> + <property>/controls/gear/wheel[0]/brake</property> <value type="double">0.0</value> </binding> </mod-up> @@ -733,15 +733,15 @@ no <mod-up> tag, so it *does* work like a parking brake. <desc>Toggle parking brake on or off</desc> <binding> <command>property-toggle</command> - <property>/controls/brakes[0]</property> + <property>/controls/gear/wheel[0]/brake</property> </binding> <binding> <command>property-toggle</command> - <property>/controls/brakes[1]</property> + <property>/controls/gear/wheel[1]/brake</property> </binding> <binding> <command>property-toggle</command> - <property>/controls/brakes[2]</property> + <property>/controls/gear/wheel[2]/brake</property> </binding> </key> </PRE> diff --git a/Docs/README.xmlpanel.html b/Docs/README.xmlpanel.html index 672aaad19..1cfb31ecb 100644 --- a/Docs/README.xmlpanel.html +++ b/Docs/README.xmlpanel.html @@ -503,7 +503,7 @@ of a switch see $FG_ROOT/Aircraft/c172/Instruments/brake.xml. <layer> <name>Brake light</name> <type>switch</type> <!-- define layer as a switch --> - <property>/controls/brakes</property> <!-- tie it to a property --> + <property>/controls/gear/wheel[0]/brake</property> <!-- tie it to a property --> <layer1> <!-- layer for true state --> <name>on</name> <!-- label to make life easy --> <texture> <!-- layer1 of switch is a texture layer -->