diff --git a/joysticks.xml b/joysticks.xml new file mode 100644 index 000000000..f7a9e31f0 --- /dev/null +++ b/joysticks.xml @@ -0,0 +1,116 @@ + + + + + + + + + Aileron + + property-scale + /controls/aileron + + + + + Elevator + + property-scale + /controls/elevator + -1.0 + + + + + Throttle + + property-scale + /controls/throttle + -1.0 + -0.5 + + + + + + + + + + + + + + diff --git a/keyboard.xml b/keyboard.xml index 28f325d8c..1f328dbd5 100644 --- a/keyboard.xml +++ b/keyboard.xml @@ -13,14 +13,9 @@ Regular keycodes go up to 255; special keys start at 256, and can be calculated by adding 256 to the GLUT key value in glut.h. --> - - - - 1 + Ctrl-A Toggle autopilot altitude lock. @@ -29,8 +24,7 @@ calculated by adding 256 to the GLUT key value in glut.h. - - 8 + Ctrl-H Toggle autopilot heading lock. @@ -39,19 +33,17 @@ calculated by adding 256 to the GLUT key value in glut.h. - - 13 + Enter Move rudder right or increase autopilot heading. property-adjust /autopilot/control-overrides/rudder - 0.05 + 0.05 - - 14 + Ctrl-N Toggle autopilot nav1 lock. @@ -60,8 +52,7 @@ calculated by adding 256 to the GLUT key value in glut.h. - - 19 + Ctrl-S Toggle auto-throttle lock. @@ -70,246 +61,231 @@ calculated by adding 256 to the GLUT key value in glut.h. - - 21 + Ctrl-U [Cheat] Add 1000ft of emergency altitude. property-adjust /position/altitude - 1000 + 1000.0 - - 48 + + , + Left brake + + property-assign + /controls/brakes[0] + 1.0 + + + property-assign + /controls/brakes[0] + 0.0 + + + + + . + Right brake + + property-assign + /controls/brakes[1] + 1.0 + + + property-assign + /controls/brakes[1] + 0.0 + + + + 0 Move rudder left or increase autopilot heading. property-adjust /autopilot/control-overrides/rudder - -0.05 + -0.05 - - 49 + 1 Decrease elevator trim. property-adjust /controls/elevator-trim - -0.001 + -0.001 + + Look back left + + property-assign + /sim/view/goal-offset + 135 + + - - 49 - Keypad-1 - Look back left. - true - - property-assign - /sim/view/goal-offset - 135 - - - - - 50 + 2 Increase elevator or autopilot altitude. property-adjust /autopilot/control-overrides/elevator - 0.01 + 0.01 + + Look back. + + property-assign + /sim/view/goal-offset + 180 + + - - 50 - Keypad-2 - Look back. - true - - property-assign - /sim/view/goal-offset - 180 - - - - - 51 + 3 Decrease throttle or autopilot autothrottle. property-adjust /autopilot/control-overrides/throttle - -0.01 + -0.01 + + Look back right. + + property-assign + /sim/view/goal-offset + 225 + + - - 51 - Keypad-3 - Look back right. - true - - property-assign - /sim/view/goal-offset - 225 - - - - - 52 + 4 Move aileron left. property-adjust /controls/aileron - -0.05 + -0.05 + + Look left. + + property-assign + /sim/view/goal-offset + 90 + + - - 52 - Keypad-4 - Look left. - true - - property-assign - /sim/view/goal-offset - 90 - - - - - 53 + 5 Center aileron, elevator, and rudder. property-assign /controls/aileron - 0.0 + 0.0 property-assign /controls/elevator - 0.0 + 0.0 property-assign /controls/rudder - 0.0 + 0.0 - - 54 + 6 Move aileron right. property-adjust /controls/aileron - 0.05 + 0.05 + + Look right. + + property-assign + /sim/view/goal-offset + 270 + + - - 54 - Keypad-6 - Look right. - true - - property-assign - /sim/view/goal-offset - 270 - - - - - 55 + 7 Increase elevator trim. property-adjust /controls/elevator-trim - 0.001 + 0.001 + + Look front left. + + property-assign + /sim/view/goal-offset + 45 + + - - 55 - Keypad-7 - Look front left. - true - - property-assign - /sim/view/goal-offset - 45 - - - - - 56 + 8 Decrease elevator or autopilot altitude. property-adjust /autopilot/control-overrides/elevator - -0.01 + -0.01 + + Look forward. + + property-assign + /sim/view/goal-offset + 0 + + - - 56 - Keypad-8 - Look forward. - true - - property-assign - /sim/view/goal-offset - 0 - - - - - 57 + 9 Increase throttle or autopilot autothrottle. property-adjust /autopilot/control-overrides/throttle - 0.01 + 0.01 + + Look front right. + + property-assign + /sim/view/goal-offset + 315 + + - - 57 - Keypad-9 - Look front right. - true - - property-assign - /sim/view/goal-offset - 315 - - - - - 65 + A Decrease speed-up. property-adjust /sim/speed-up - -1 + -1 - - 80 + P Toggle panel. @@ -318,41 +294,75 @@ calculated by adding 256 to the GLUT key value in glut.h. - - 91 + [ Decrease flaps. property-adjust /controls/flaps - -0.34 + -0.34 - - 93 + ] Increase flaps. property-adjust /controls/flaps - 0.34 + 0.34 - - 97 + a Increase speed-up. property-adjust /sim/speed-up - 1 + 1 - - 118 + + b + Apply all brakes. + + property-assign + /controls/brakes[0] + 1.0 + + + property-assign + /controls/brakes[1] + 1.0 + + + property-assign + /controls/brakes[2] + 1.0 + + + Release all brakes. + + property-assign + /controls/brakes[0] + 0.0 + + + property-assign + /controls/brakes[1] + 0.0 + + + property-assign + /controls/brakes[2] + 0.0 + + + + + v Cycle view @@ -360,8 +370,7 @@ calculated by adding 256 to the GLUT key value in glut.h. - - 259 + F3 Capture screen. @@ -369,230 +378,187 @@ calculated by adding 256 to the GLUT key value in glut.h. - - 269 + Enter Move rudder right or increase autopilot heading. property-adjust /autopilot/control-overrides/rudder - 0.05 + 0.05 - - 309 + Keypad 5 Center aileron, elevator, and rudder. property-assign /controls/aileron - 0.0 + 0.0 property-assign /controls/elevator - 0.0 + 0.0 property-assign /controls/rudder - 0.0 + 0.0 - - 356 + Left Move aileron left. property-adjust /controls/aileron - -0.05 + -0.05 + + Look left. + + property-assign + /sim/view/goal-offset + 90 + + - - 356 - Keypad-4 - Look left. - true - - property-assign - /sim/view/goal-offset - 90 - - - - - 357 + Up Increase elevator or autopilot altitude. property-adjust /autopilot/control-overrides/elevator - 0.05 + 0.05 + + Look forward. + + property-assign + /sim/view/goal-offset + 0 + + - - 357 - Keypad-8 - Look forward. - true - - property-assign - /sim/view/goal-offset - 0 - - - - - 358 + Right Move aileron right. property-adjust /controls/aileron - 0.05 + 0.05 + + Look right. + + property-assign + /sim/view/goal-offset + 270 + + - - 358 - Keypad-6 - Look right. - true - - property-assign - /sim/view/goal-offset - 270 - - - - - 359 + Down Decrease elevator or autopilot altitude. property-adjust /autopilot/control-overrides/elevator - -0.05 + -0.05 + + Look backwards. + + property-assign + /sim/view/goal-offset + 180 + + - - 359 - Keypad-2 - Look backwards. - true - - property-assign - /sim/view/goal-offset - 180 - - - - - 360 + PageUp Increase throttle or autopilot autothrottle. property-adjust /autopilot/control-overrides/throttle - 0.01 + 0.01 + + Look front right. + + property-assign + /sim/view/goal-offset + 315 + + - - 360 - Keypad-9 - Look front right. - true - - property-assign - /sim/view/goal-offset - 315 - - - - - 361 + PageDown Decrease throttle or autopilot autothrottle. property-adjust /autopilot/control-overrides/throttle - -0.01 + -0.01 + + Look back right. + + property-assign + /sim/view/goal-offset + 225 + + - - 361 - Keypad-3 - Look back right. - true - - property-assign - /sim/view/goal-offset - 225 - - - - - 362 + Home Increase elevator trim. property-adjust /controls/elevator-trim - 0.001 + 0.001 + + Look front left. + + property-assign + /sim/view/goal-offset + 45 + + - - 362 - Keypad-7 - Look front left. - true - - property-assign - /sim/view/goal-offset - 45 - - - - - 363 + End Decrease elevator trim. property-adjust /controls/elevator-trim - -0.001 + -0.001 + + Look back left. + + property-assign + /sim/view/goal-offset + 135 + + - - 363 - Keypad-1 - Look back left. - true - - property-assign - /sim/view/goal-offset - 135 - - - - - 364 + Insert Move rudder left or decrease autopilot heading. property-adjust /autopilot/control-overrides/rudder - -0.05 + -0.05 diff --git a/preferences.xml b/preferences.xml index 8894287ed..3f8e9920f 100644 --- a/preferences.xml +++ b/preferences.xml @@ -78,7 +78,7 @@ Started September 2000 by David Megginson, david@megginson.com - 0.8 + 1.0 @@ -89,69 +89,8 @@ Started September 2000 by David Megginson, david@megginson.com - - - /controls/aileron - 0.1 - - - /controls/elevator - 0.1 - -1.0 - - - /controls/rudder - 0.1 - - - /controls/throttle - 0.0 - -0.5 - -1.0 - - - switch - /controls/brakes/all - 0.0 - 1.0 - - - switch - /controls/brakes[0] - 0.0 - 1.0 - - - switch - /controls/brakes[1] - 0.0 - 1.0 - - - adjust - /controls/elevator-trim - true - 0.001 - - - adjust - /controls/elevator-trim - true - -0.001 - - - adjust - /controls/flaps - false - -0.34 - - - adjust - /controls/flaps - false - 0.34 - - + +