diff --git a/Aircraft/Instruments/brakes.xml b/Aircraft/Instruments/brakes.xml index 0a5c9a39b..9a3aadb1c 100644 --- a/Aircraft/Instruments/brakes.xml +++ b/Aircraft/Instruments/brakes.xml @@ -16,7 +16,7 @@ switch - /controls/gear/parking-brake + /controls/gear/brake-parking on @@ -73,7 +73,7 @@ 26 property-toggle - /controls/gear/parking-brake + /controls/gear/brake-parking diff --git a/Docs/README.Joystick.html b/Docs/README.Joystick.html index 262d527c3..566aba777 100644 --- a/Docs/README.Joystick.html +++ b/Docs/README.Joystick.html @@ -473,13 +473,13 @@ button: <desc>Left brake</desc> <binding> <command>property-assign</command> - <property>/controls/gear/wheel[0]/brake</property> + <property>/controls/gear/brake-left</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/gear/wheel[0]/brake</property> + <property>/controls/gear/brake-left</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:

   --prop:/input/joysticks/js[0]/button[4]/binding/command=property-assign
-  --prop:/input/joysticks/js[0]/button[4]/binding/property=/controls/gear/wheel[0]/brake
+  --prop:/input/joysticks/js[0]/button[4]/binding/property=/controls/gear/brake-left
   --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/gear/wheel[0]/brake
+  --prop:/input/joysticks/js[0]/button[4]/mod-up/binding/property=/controls/gear/brake-left
   --prop:/input/joysticks/js[0]/button[4]/mod-up/binding/value=0.0
 

@@ -518,33 +518,23 @@ button 0 is pressed, and releases all three when button 0 is released: <desc>Brakes</desc> <binding> <command>property-assign</command> - <property>/controls/gear/wheel[0]/brake</property> + <property>/controls/gear/brake-left</property> <value type="double">1.0</value> </binding> <binding> <command>property-assign</command> - <property>/controls/gear/wheel[1]/brake</property> - <value type="double">1.0</value> - </binding> - <binding> - <command>property-assign</command> - <property>/controls/gear/wheel[2]/brake</property> + <property>/controls/gear/brake-right</property> <value type="double">1.0</value> </binding> <mod-up> <binding> <command>property-assign</command> - <property>/controls/gear/wheel[0]/brake</property> + <property>/controls/gear/brake-left</property> <value type="double">0.0</value> </binding> <binding> <command>property-assign</command> - <property>/controls/gear/wheel[1]/brake</property> - <value type="double">0.0</value> - </binding> - <binding> - <command>property-assign</command> - <property>/controls/gear/wheel[2]/brake</property> + <property>/controls/gear/brake-right</property> <value type="double">0.0</value> </binding> </mod-up> @@ -558,13 +548,10 @@ XML will handle this automatically):

   --prop:/input/joysticks/button[0]/binding[0]/command=property-assign
-  --prop:/input/joysticks/button[0]/binding[0]/property=/controls/gear/wheel[0]/brake
+  --prop:/input/joysticks/button[0]/binding[0]/property=/controls/gear/brake-left
   --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/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/gear/wheel[2]/brake
+  --prop:/input/joysticks/button[0]/binding[1]/property=/controls/gear/brake-right
   --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]
@@ -572,9 +559,6 @@ XML will handle this automatically):
   --prop:/input/joysticks/button[0]/mod-up/binding[1]/command=property-assign
   --prop:/input/joysticks/button[0]/mod-up/binding[1]/property=brakes[1]
   --prop:/input/joysticks/button[0]/mod-up/binding[1]/value=0.0
-  --prop:/input/joysticks/button[0]/mod-up/binding[2]/command=property-assign
-  --prop:/input/joysticks/button[0]/mod-up/binding[2]/property=brakes[2]
-  --prop:/input/joysticks/button[0]/mod-up/binding[2]/value=0.0
 

@@ -717,13 +701,13 @@ just as with the joystick: <desc>Left brake</desc> <binding> <command>property-assign</command> - <property>/controls/gear/wheel[0]/brake</property> + <property>/controls/gear/brake-left</property> <value type="double">1.0</value> </binding> <mod-up> <binding> <command>property-assign</command> - <property>/controls/gear/wheel[0]/brake</property> + <property>/controls/gear/brake-left</property> <value type="double">0.0</value> </binding> </mod-up> @@ -741,15 +725,7 @@ 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/gear/wheel[0]/brake</property> - </binding> - <binding> - <command>property-toggle</command> - <property>/controls/gear/wheel[1]/brake</property> - </binding> - <binding> - <command>property-toggle</command> - <property>/controls/gear/wheel[2]/brake</property> + <property>/controls/gear/brake-parking</property> </binding> </key> diff --git a/Docs/README.xmlpanel.html b/Docs/README.xmlpanel.html index 1cfb31ecb..529844394 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/gear/wheel[0]/brake</property> <!-- tie it to a property --> + <property>/controls/gear/brake-left</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 --> diff --git a/Input/Joysticks/CH/pro-pedals-usb.xml b/Input/Joysticks/CH/pro-pedals-usb.xml index 7c666e745..99d7fd1f3 100644 --- a/Input/Joysticks/CH/pro-pedals-usb.xml +++ b/Input/Joysticks/CH/pro-pedals-usb.xml @@ -23,7 +23,7 @@ $Id$ property-scale - /controls/gear/wheel[0]/brake + /controls/gear/brake-left 1.0 0.5 @@ -32,7 +32,7 @@ $Id$ property-scale - /controls/gear/wheel[1]/brake + /controls/gear/brake-right 1.0 0.5 diff --git a/Input/Joysticks/Default/four-axis-joystick.xml b/Input/Joysticks/Default/four-axis-joystick.xml index 0c49c54bd..e5c8cca8c 100644 --- a/Input/Joysticks/Default/four-axis-joystick.xml +++ b/Input/Joysticks/Default/four-axis-joystick.xml @@ -51,13 +51,25 @@ joystick, and that the first button is the trigger. diff --git a/Input/Joysticks/Default/joystick.xml b/Input/Joysticks/Default/joystick.xml index dfe6d2d50..20ac3c873 100644 --- a/Input/Joysticks/Default/joystick.xml +++ b/Input/Joysticks/Default/joystick.xml @@ -42,13 +42,25 @@ $Id$ diff --git a/Input/Joysticks/Logitech/extreme-3d-win.xml b/Input/Joysticks/Logitech/extreme-3d-win.xml index 5364f0359..b839d3ee4 100644 --- a/Input/Joysticks/Logitech/extreme-3d-win.xml +++ b/Input/Joysticks/Logitech/extreme-3d-win.xml @@ -143,40 +143,30 @@ $Id$ + Brakes + + property-assign + /controls/gear/brake-left + 1.0 + + + property-assign + /controls/gear/brake-right + 1.0 + + + + property-assign + /controls/gear/brake-left + 0.0 + + + property-assign + /controls/gear/brake-right + 0.0 + + + diff --git a/Input/Joysticks/Saitek/X8-30.xml b/Input/Joysticks/Saitek/X8-30.xml index fa407a253..83fc28ee6 100644 --- a/Input/Joysticks/Saitek/X8-30.xml +++ b/Input/Joysticks/Saitek/X8-30.xml @@ -147,33 +147,23 @@ $Id$ Brakes property-assign - /controls/gear/wheel[0]/brake + /controls/gear/brake-left 1.0 property-assign - /controls/gear/wheel[1]/brake - 1.0 - - - property-assign - /controls/gear/wheel[2]/brake + /controls/gear/brake-right 1.0 property-assign - /controls/gear/wheel[0]/brake + /controls/gear/brake-left 0.0 property-assign - /controls/gear/wheel[1]/brake - 0.0 - - - property-assign - /controls/gear/wheel[2]/brake + /controls/gear/brake-right 0.0 diff --git a/keyboard.xml b/keyboard.xml index 23d02cd15..4de4f5970 100644 --- a/keyboard.xml +++ b/keyboard.xml @@ -211,13 +211,13 @@ calculated by adding 256 to the GLUT key value in glut.h. Left brake property-assign - /controls/gear/wheel[0]/brake + /controls/gear/brake-left 1.0 property-assign - /controls/gear/wheel[0]/brake + /controls/gear/brake-left 0.0 @@ -228,13 +228,13 @@ calculated by adding 256 to the GLUT key value in glut.h. Right brake property-assign - /controls/gear/wheel[1]/brake + /controls/gear/brake-right 1.0 property-assign - /controls/gear/wheel[1]/brake + /controls/gear/brake-right 0.0 @@ -428,7 +428,7 @@ calculated by adding 256 to the GLUT key value in glut.h. Toggle parking brake on or off property-toggle - /controls/gear/parking-brake + /controls/gear/brake-parking @@ -539,13 +539,25 @@ calculated by adding 256 to the GLUT key value in glut.h. b Apply all brakes. - nasal - + property-assign + /controls/gear/brake-left + 1.0 + + + property-assign + /controls/gear/brake-right + 1.0 - nasal - + property-assign + /controls/gear/brake-left + 0.0 + + + property-assign + /controls/gear/brake-right + 0.0 diff --git a/preferences.xml b/preferences.xml index b14ac3f77..956cee26b 100644 --- a/preferences.xml +++ b/preferences.xml @@ -498,15 +498,9 @@ Started September 2000 by David Megginson, david@megginson.com - - 0.0 - - - 0.0 - - - 0.0 - + 0.0 + 0.0 + 0.0 true