From 557737666f39b7d836aeb38e5d918a684a199ad7 Mon Sep 17 00:00:00 2001 From: ehofman Date: Thu, 19 Feb 2004 14:16:23 +0000 Subject: [PATCH] Add a more advanced configuration file for the Cyborg-Gold-3d-USB --- Input/Joysticks/Saitek/Cyborg-Gold-3d-USB.xml | 782 +++++++++++------- 1 file changed, 497 insertions(+), 285 deletions(-) diff --git a/Input/Joysticks/Saitek/Cyborg-Gold-3d-USB.xml b/Input/Joysticks/Saitek/Cyborg-Gold-3d-USB.xml index fc68a53f2..7cfcdce41 100644 --- a/Input/Joysticks/Saitek/Cyborg-Gold-3d-USB.xml +++ b/Input/Joysticks/Saitek/Cyborg-Gold-3d-USB.xml @@ -1,294 +1,506 @@ + + +axis 0: aileron +axis 1: elevator +axis 2: rudder +axis 3: throttle + + + no modifier F3 F4 F3+F4 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +button 0 (trigger): brakes parking brake speed brake thrust revers. +button 1 (left): flaps up gear up previous view * +button 2 (middle): reset view dir tail wheel lock cockpit view reset all trim +button 3 (right): flaps down gear down next view * +button 4 (F1): brakes left * * * +button 5 (F2): brakes right * * * +button 6 (F3): //////////////////////// modifier 0 ///////////////////////// +button 7 (F4): //////////////////////// modifier 1 ///////////////////////// +button 8 (>>): * * * * +button 9 (<<): * * * * +hat left: look left leaner mixture aileron trim rudder trim +hat right: look right richer mixture aileron trim rudder trim +hat back: look down dec prop pitch elevator trim * +hat forward: look up inc prop pitch elevator trim * + + +F3 and F4 are used like "Shift", "Control", or "Alternate" on computer keyboards. +For example: press F3 and keep holding it down while pressing the fire +button/trigger -> toggle parking brake + + + +___________________________________ Customization ____________________________________ + + + +If you want to change some (or all) of the bindings, the recommended way is +to copy this file to your home directory, make your changes there, and include +it from your personal preferences.xml file. Use the tags +and around the definitions, but within the scope. +(You can use any number lower than 999.) - -SAITEK CYBORG 3D USB -CYBORG 3D USB - - -Aileron - -property-scale -/controls/flight/aileron -true - - - - -Elevator - -property-scale -/controls/flight/elevator --1.0 -true - - - - -Rudder - -property-scale -/controls/flight/rudder -0.0 -1.0 - - - - -Throttle - -property-scale -/controls/engines/engine[0]/throttle --1.0 --0.5 - - -property-scale -/controls/engines/engine[1]/throttle --1.0 --0.5 - - -property-scale -/controls/engines/engine[2]/throttle --1.0 --0.5 - - -property-scale -/controls/engines/engine[3]/throttle --1.0 --0.5 - - -property-scale -/controls/engines/engine[4]/throttle --1.0 --0.5 - - -property-scale -/controls/engines/engine[5]/throttle --1.0 --0.5 - - -property-scale -/controls/engines/engine[6]/throttle --1.0 --0.5 - - -property-scale -/controls/engines/engine[7]/throttle --1.0 --0.5 - - - - -View Direction - -true - -property-adjust -/sim/current-view/goal-heading-offset-deg -2.0 - - - -true - -property-adjust -/sim/current-view/goal-heading-offset-deg --2.0 - - - - - -View elevation - -true - -property-adjust -/sim/current-view/goal-pitch-offset-deg --2.0 - - - -true - -property-adjust -/sim/current-view/goal-pitch-offset-deg -2.0 - - - - - - - - - - - - - - - - - - - - - - - - - - + + + +The property "/input/joysticks/js[0]/saitek-cyborg-3D-modifier" indicates +the "shift" level. F3 sets bit 0, F4 sets bit 1. The property is 'nil' or +zero if none of the shift buttons is pressed, 1 if F3 is pressed, 2 if F4 +is pressed, and 3 if both F3 and F4 are pressed. + +Note that you have to enclose nasal scripts in +if they contain characters that interfere with the xml markup. This is the case +if you are, for exmaple, using < (lower than). Alternatively, you can 'escape' +the character with "<". + + + + +____________________________________ References ______________________________________ + + + +Joysticks: $FG_ROOT/README.Joystick.html +Properties: see property browser (fgfs menu: File/Browse internal properties) + +Nasal: http://www.plausible.org/nasal/ +Nasal examples: $FG_ROOT/Nasal/ + + +______________________________________________________________________________________ + + ~~ Melchior FRANZ +--> + + + SAITEK CYBORG 3D USB + CYBORG 3D USB + + + Aileron + + property-scale + /controls/flight/aileron + 2.0 + + + + + Elevator + + property-scale + /controls/flight/elevator + -1.0 + 2.0 + + + + + Rudder + + property-scale + /controls/flight/rudder + 0.0 + 1.0 + + + + + Throttle + + nasal + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +