3 Key binding definitions.
5 This file is included by preferences.xml, and uses the context of its
6 inclusion point; that means that you need to prepend "/input/keyboard"
9 The list here is not yet comprehensive: many of the bindings are still
10 handled in the C++ code.
12 Regular keycodes go up to 255; special keys start at 256, and can be
13 calculated by adding 256 to the GLUT key value in glut.h.
20 <desc>Toggle autopilot altitude lock.</desc>
22 <command>property-toggle</command>
23 <property>/autopilot/locks/altitude</property>
29 <desc>Toggle autopilot glide slope lock.</desc>
31 <command>property-toggle</command>
32 <property>/autopilot/locks/glide-slope</property>
38 <desc>Toggle autopilot heading lock.</desc>
40 <command>property-toggle</command>
41 <property>/autopilot/locks/heading</property>
47 <desc>Move rudder right or increase autopilot heading.</desc>
49 <command>property-adjust</command>
50 <property>/autopilot/control-overrides/rudder</property>
51 <step type="double">0.05</step>
57 <desc>Toggle autopilot nav1 lock.</desc>
59 <command>property-toggle</command>
60 <property>/autopilot/locks/nav[0]</property>
66 <desc>(Temporary) Toggle winding-ccw</desc>
68 <command>property-toggle</command>
69 <property>/sim/temp/winding-ccw</property>
75 <desc>Toggle auto-throttle lock.</desc>
77 <command>property-toggle</command>
78 <property>/autopilot/locks/auto-throttle</property>
84 <desc>Toggle autopilot terrain lock.</desc>
86 <command>property-toggle</command>
87 <property>/autopilot/locks/terrain</property>
93 <desc>[Cheat] Add 1000ft of emergency altitude.</desc>
95 <command>property-adjust</command>
96 <property>/position/altitude-ft</property>
97 <step type="double">1000.0</step>
100 <command>property-assign</command>
101 <property>/sim/startup/onground</property>
102 <value type="bool">false</value>
108 <desc>Prompt and quit FlightGear.</desc>
110 <command>exit</command>
116 <desc>Fire Starter on Selected Engine(s)</desc>
120 <property>/sim/input/selected/engine[0]</property>
122 <command>property-assign</command>
123 <property>/controls/starter[0]</property>
124 <value type="bool">true</value>
129 <property>/sim/input/selected/engine[1]</property>
131 <command>property-assign</command>
132 <property>/controls/starter[1]</property>
133 <value type="bool">true</value>
138 <property>/sim/input/selected/engine[2]</property>
140 <command>property-assign</command>
141 <property>/controls/starter[2]</property>
142 <value type="bool">true</value>
147 <property>/sim/input/selected/engine[3]</property>
149 <command>property-assign</command>
150 <property>/controls/starter[3]</property>
151 <value type="bool">true</value>
156 <command>property-assign</command>
157 <property>/controls/starter[0]</property>
158 <value type="bool">false</value>
161 <command>property-assign</command>
162 <property>/controls/starter[1]</property>
163 <value type="bool">false</value>
166 <command>property-assign</command>
167 <property>/controls/starter[2]</property>
168 <value type="bool">false</value>
171 <command>property-assign</command>
172 <property>/controls/starter[3]</property>
173 <value type="bool">false</value>
181 <desc>Select first engine</desc>
183 <command>property-assign</command>
184 <property>/sim/input/selected/engine[0]</property>
185 <value type="bool">true</value>
188 <command>property-assign</command>
189 <property>/sim/input/selected/engine[1]</property>
190 <value type="bool">false</value>
193 <command>property-assign</command>
194 <property>/sim/input/selected/engine[2]</property>
195 <value type="bool">false</value>
198 <command>property-assign</command>
199 <property>/sim/input/selected/engine[3]</property>
200 <value type="bool">false</value>
206 <desc>Select third engine</desc>
208 <command>property-assign</command>
209 <property>/sim/input/selected/engine[0]</property>
210 <value type="bool">false</value>
213 <command>property-assign</command>
214 <property>/sim/input/selected/engine[1]</property>
215 <value type="bool">false</value>
218 <command>property-assign</command>
219 <property>/sim/input/selected/engine[2]</property>
220 <value type="bool">true</value>
223 <command>property-assign</command>
224 <property>/sim/input/selected/engine[3]</property>
225 <value type="bool">false</value>
231 <desc>Select fourth engine</desc>
233 <command>property-assign</command>
234 <property>/sim/input/selected/engine[0]</property>
235 <value type="bool">false</value>
238 <command>property-assign</command>
239 <property>/sim/input/selected/engine[1]</property>
240 <value type="bool">false</value>
243 <command>property-assign</command>
244 <property>/sim/input/selected/engine[2]</property>
245 <value type="bool">false</value>
248 <command>property-assign</command>
249 <property>/sim/input/selected/engine[3]</property>
250 <value type="bool">true</value>
256 <desc>Left brake</desc>
258 <command>property-assign</command>
259 <property>/controls/brakes[0]</property>
260 <value type="double">1.0</value>
264 <command>property-assign</command>
265 <property>/controls/brakes[0]</property>
266 <value type="double">0.0</value>
273 <desc>Right brake</desc>
275 <command>property-assign</command>
276 <property>/controls/brakes[1]</property>
277 <value type="double">1.0</value>
281 <command>property-assign</command>
282 <property>/controls/brakes[1]</property>
283 <value type="double">0.0</value>
290 <desc>Move rudder left or increase autopilot heading.</desc>
292 <command>property-adjust</command>
293 <property>/autopilot/control-overrides/rudder</property>
294 <step type="double">-0.05</step>
300 <desc>Decrease elevator trim.</desc>
302 <command>property-adjust</command>
303 <property>/controls/elevator-trim</property>
304 <step type="double">-0.001</step>
307 <desc>Look back left</desc>
309 <command>property-assign</command>
310 <property>/sim/view/goal-offset-deg</property>
311 <value type="double">135</value>
318 <desc>Increase elevator or autopilot altitude.</desc>
320 <command>property-adjust</command>
321 <property>/autopilot/control-overrides/elevator</property>
322 <step type="double">-0.01</step>
325 <desc>Look back.</desc>
327 <command>property-assign</command>
328 <property>/sim/view/goal-offset-deg</property>
329 <value type="double">180</value>
336 <desc>Decrease throttle or autopilot autothrottle.</desc>
338 <command>property-adjust</command>
339 <property>/autopilot/control-overrides/throttle</property>
340 <step type="double">-0.01</step>
343 <desc>Look back right.</desc>
345 <command>property-assign</command>
346 <property>/sim/view/goal-offset-deg</property>
347 <value type="double">225</value>
354 <desc>Move aileron left.</desc>
356 <command>property-adjust</command>
357 <property>/controls/aileron</property>
358 <step type="double">-0.05</step>
361 <desc>Look left.</desc>
363 <command>property-assign</command>
364 <property>/sim/view/goal-offset-deg</property>
365 <value type="double">90</value>
372 <desc>Center aileron, elevator, and rudder.</desc>
374 <command>property-assign</command>
375 <property>/controls/aileron</property>
376 <value type="double">0.0</value>
379 <command>property-assign</command>
380 <property>/controls/elevator</property>
381 <value type="double">0.0</value>
384 <command>property-assign</command>
385 <property>/controls/rudder</property>
386 <value type="double">0.0</value>
392 <desc>Move aileron right.</desc>
394 <command>property-adjust</command>
395 <property>/controls/aileron</property>
396 <step type="double">0.05</step>
399 <desc>Look right.</desc>
401 <command>property-assign</command>
402 <property>/sim/view/goal-offset-deg</property>
403 <value type="double">270</value>
410 <desc>Increase elevator trim.</desc>
412 <command>property-adjust</command>
413 <property>/controls/elevator-trim</property>
414 <step type="double">0.001</step>
417 <desc>Look front left.</desc>
419 <command>property-assign</command>
420 <property>/sim/view/goal-offset-deg</property>
421 <value type="double">45</value>
428 <desc>Decrease elevator or autopilot altitude.</desc>
430 <command>property-adjust</command>
431 <property>/autopilot/control-overrides/elevator</property>
432 <step type="double">0.01</step>
435 <desc>Look forward.</desc>
437 <command>property-assign</command>
438 <property>/sim/view/goal-offset-deg</property>
439 <value type="double">0</value>
446 <desc>Increase throttle or autopilot autothrottle.</desc>
448 <command>property-adjust</command>
449 <property>/autopilot/control-overrides/throttle</property>
450 <step type="double">0.01</step>
453 <desc>Look front right.</desc>
455 <command>property-assign</command>
456 <property>/sim/view/goal-offset-deg</property>
457 <value type="double">315</value>
464 <desc>Select second engine</desc>
466 <command>property-assign</command>
467 <property>/sim/input/selected/engine[0]</property>
468 <value type="bool">false</value>
471 <command>property-assign</command>
472 <property>/sim/input/selected/engine[1]</property>
473 <value type="bool">true</value>
476 <command>property-assign</command>
477 <property>/sim/input/selected/engine[2]</property>
478 <value type="bool">false</value>
481 <command>property-assign</command>
482 <property>/sim/input/selected/engine[3]</property>
483 <value type="bool">false</value>
489 <desc>Decrease speed-up.</desc>
491 <command>property-adjust</command>
492 <property>/sim/speed-up</property>
494 <step type="double">-1</step>
500 <desc>Toggle parking brake on or off</desc>
502 <command>property-toggle</command>
503 <property>/controls/brakes[0]</property>
506 <command>property-toggle</command>
507 <property>/controls/brakes[1]</property>
510 <command>property-toggle</command>
511 <property>/controls/brakes[2]</property>
517 <desc>Decrease warp.</desc>
519 <command>property-adjust</command>
520 <property>/sim/time/warp</property>
521 <step type="int">-60</step>
527 <desc>Toggle panel.</desc>
529 <command>property-toggle</command>
530 <property>/sim/panel/visibility</property>
536 <desc>Decrease warp delta.</desc>
538 <command>property-adjust</command>
539 <property>/sim/time/warp-delta</property>
540 <step type="int">-30</step>
546 <desc>(Temporary) Toggle fullscreen for 3DFX only.</desc>
548 <command>property-toggle</command>
549 <property>/sim/temp/full-screen</property>
555 <desc>Increase field of view.</desc>
557 <command>property-multiply</command>
558 <property>/sim/field-of-view</property>
559 <factor type="double">1.05</factor>
565 <desc>Decrease Visibility</desc>
567 <command>property-multiply</command>
568 <property>/environment/visibility-m</property>
569 <factor type="double">0.9090909090</factor>
575 <desc>Decrease flaps.</desc>
577 <command>property-adjust</command>
578 <property>/controls/flaps</property>
579 <step type="double">-0.34</step>
585 <desc>Increase flaps.</desc>
587 <command>property-adjust</command>
588 <property>/controls/flaps</property>
589 <step type="double">0.34</step>
595 <desc>Increase speed-up.</desc>
597 <command>property-adjust</command>
598 <property>/sim/speed-up</property>
600 <step type="double">1</step>
606 <desc>Apply all brakes.</desc>
608 <command>property-assign</command>
609 <property>/controls/brakes[0]</property>
610 <value type="double">1.0</value>
613 <command>property-assign</command>
614 <property>/controls/brakes[1]</property>
615 <value type="double">1.0</value>
618 <command>property-assign</command>
619 <property>/controls/brakes[2]</property>
620 <value type="double">1.0</value>
623 <desc>Release all brakes.</desc>
625 <command>property-assign</command>
626 <property>/controls/brakes[0]</property>
627 <value type="double">0.0</value>
630 <command>property-assign</command>
631 <property>/controls/brakes[1]</property>
632 <value type="double">0.0</value>
635 <command>property-assign</command>
636 <property>/controls/brakes[2]</property>
637 <value type="double">0.0</value>
644 <desc>Increase warp.</desc>
646 <command>property-adjust</command>
647 <property>/sim/time/warp</property>
648 <step type="int">60</step>
654 <desc>Toggle gear down.</desc>
656 <command>property-toggle</command>
657 <property>/controls/gear-down</property>
663 <desc>Toggle the pause state of the sim.</desc>
665 <command>property-toggle</command>
666 <property>/sim/freeze/master</property>
669 <command>property-toggle</command>
670 <property>/sim/freeze/clock</property>
676 <desc>Swap panels.</desc>
678 <command>property-swap</command>
679 <property>/sim/panel/path</property>
680 <property>/sim/panel_2/path</property>
683 <desc>Load panel.</desc>
684 <command>panel-load</command>
690 <desc>Increase warp delta.</desc>
692 <command>property-adjust</command>
693 <property>/sim/time/warp-delta</property>
694 <step type="int">30</step>
700 <desc>Cycle view</desc>
702 <command>view-cycle</command>
708 <desc>Decrease field of view.</desc>
710 <command>property-multiply</command>
711 <property>/sim/field-of-view</property>
712 <factor type="double">0.952380952380</factor>
718 <desc>Increase Visibility</desc>
720 <command>property-multiply</command>
721 <property>/environment/visibility-m</property>
722 <factor type="double">1.1</factor>
728 <desc>Decrease Magneto on Selected Engine</desc>
730 <desc>first engine</desc>
732 <property>/sim/input/selected/engine[0]</property>
734 <command>property-adjust</command>
735 <property>/controls/magnetos[0]</property>
736 <step type="int">-1</step>
739 <desc>second engine</desc>
741 <property>/sim/input/selected/engine[1]</property>
743 <command>property-adjust</command>
744 <property>/controls/magnetos[1]</property>
745 <step type="int">-1</step>
748 <desc>third engine</desc>
750 <property>/sim/input/selected/engine[2]</property>
752 <command>property-adjust</command>
753 <property>/controls/magnetos[2]</property>
754 <step type="int">-1</step>
757 <desc>fourth engine</desc>
759 <property>/sim/input/selected/engine[3]</property>
761 <command>property-adjust</command>
762 <property>/controls/magnetos[3]</property>
763 <step type="int">-1</step>
769 <desc>Increase Magneto on Selected Engine</desc>
771 <desc>first engine</desc>
773 <property>/sim/input/selected/engine[0]</property>
775 <command>property-adjust</command>
776 <property>/controls/magnetos[0]</property>
777 <step type="int">1</step>
780 <desc>second engine</desc>
782 <property>/sim/input/selected/engine[1]</property>
784 <command>property-adjust</command>
785 <property>/controls/magnetos[1]</property>
786 <step type="int">1</step>
792 <desc>Select all engines</desc>
794 <command>property-assign</command>
795 <property>/sim/input/selected/engine[0]</property>
796 <value type="bool">true</value>
799 <command>property-assign</command>
800 <property>/sim/input/selected/engine[1]</property>
801 <value type="bool">true</value>
804 <command>property-assign</command>
805 <property>/sim/input/selected/engine[2]</property>
806 <value type="bool">true</value>
809 <command>property-assign</command>
810 <property>/sim/input/selected/engine[3]</property>
811 <value type="bool">true</value>
819 <desc>Load flight.</desc>
820 <command>load</command>
828 <desc>Force tile cache reload.</desc>
829 <command>tile-cache-reload</command>
833 <desc>Save flight.</desc>
834 <command>save</command>
835 <write-all>false</write-all>
842 <desc>Capture screen.</desc>
844 <command>screen-capture</command>
848 <desc>Load panel.</desc>
849 <command>panel-load</command>
857 <desc>Force lighting update.</desc>
858 <command>lighting-update</command>
862 <desc>Reload global preferences.</desc>
863 <command>preferences-load</command>
872 <desc>Scroll panel down</desc>
873 <command>property-adjust</command>
874 <property>/sim/panel/y-offset</property>
875 <step type="int">-5</step>
884 <desc>Scroll panel up</desc>
885 <command>property-adjust</command>
886 <property>/sim/panel/y-offset</property>
887 <step type="int">5</step>
896 <desc>Scroll panel left</desc>
897 <command>property-adjust</command>
898 <property>/sim/panel/x-offset</property>
899 <step type="int">-5</step>
908 <desc>Scroll panel right</desc>
909 <command>property-adjust</command>
910 <property>/sim/panel/x-offset</property>
911 <step type="int">5</step>
919 <desc>Toggle textures.</desc>
920 <command>property-toggle</command>
921 <property>/sim/rendering/textures</property>
929 <desc>Toggle FDM data logging.</desc>
930 <command>property-toggle</command>
931 <property>/sim/temp/fdm-data-logging</property>
938 <desc>Move rudder right or increase autopilot heading.</desc>
940 <command>property-adjust</command>
941 <property>/autopilot/control-overrides/rudder</property>
942 <step type="double">0.05</step>
947 <name>Keypad 5</name>
948 <desc>Center aileron, elevator, and rudder.</desc>
950 <command>property-assign</command>
951 <property>/controls/aileron</property>
952 <value type="double">0.0</value>
955 <command>property-assign</command>
956 <property>/controls/elevator</property>
957 <value type="double">0.0</value>
960 <command>property-assign</command>
961 <property>/controls/rudder</property>
962 <value type="double">0.0</value>
968 <desc>Move aileron left.</desc>
970 <command>property-adjust</command>
971 <property>/controls/aileron</property>
972 <step type="double">-0.05</step>
975 <desc>Look left.</desc>
977 <command>property-assign</command>
978 <property>/sim/view/goal-offset-deg</property>
979 <value type="double">90</value>
986 <desc>Increase elevator or autopilot altitude.</desc>
988 <command>property-adjust</command>
989 <property>/autopilot/control-overrides/elevator</property>
990 <step type="double">0.05</step>
993 <desc>Look forward.</desc>
995 <command>property-assign</command>
996 <property>/sim/view/goal-offset-deg</property>
997 <value type="double">0</value>
1004 <desc>Move aileron right.</desc>
1006 <command>property-adjust</command>
1007 <property>/controls/aileron</property>
1008 <step type="double">0.05</step>
1011 <desc>Look right.</desc>
1013 <command>property-assign</command>
1014 <property>/sim/view/goal-offset-deg</property>
1015 <value type="double">270</value>
1022 <desc>Decrease elevator or autopilot altitude.</desc>
1024 <command>property-adjust</command>
1025 <property>/autopilot/control-overrides/elevator</property>
1026 <step type="double">-0.05</step>
1029 <desc>Look backwards.</desc>
1031 <command>property-assign</command>
1032 <property>/sim/view/goal-offset-deg</property>
1033 <value type="double">180</value>
1040 <desc>Increase throttle or autopilot autothrottle.</desc>
1042 <command>property-adjust</command>
1043 <property>/autopilot/control-overrides/throttle</property>
1044 <step type="double">0.01</step>
1047 <desc>Look front right.</desc>
1049 <command>property-assign</command>
1050 <property>/sim/view/goal-offset-deg</property>
1051 <value type="double">315</value>
1057 <name>PageDown</name>
1058 <desc>Decrease throttle or autopilot autothrottle.</desc>
1060 <command>property-adjust</command>
1061 <property>/autopilot/control-overrides/throttle</property>
1062 <step type="double">-0.01</step>
1065 <desc>Look back right.</desc>
1067 <command>property-assign</command>
1068 <property>/sim/view/goal-offset-deg</property>
1069 <value type="double">225</value>
1076 <desc>Increase elevator trim.</desc>
1078 <command>property-adjust</command>
1079 <property>/controls/elevator-trim</property>
1080 <step type="double">0.001</step>
1083 <desc>Look front left.</desc>
1085 <command>property-assign</command>
1086 <property>/sim/view/goal-offset-deg</property>
1087 <value type="double">45</value>
1094 <desc>Decrease elevator trim.</desc>
1096 <command>property-adjust</command>
1097 <property>/controls/elevator-trim</property>
1098 <step type="double">-0.001</step>
1101 <desc>Look back left.</desc>
1103 <command>property-assign</command>
1104 <property>/sim/view/goal-offset-deg</property>
1105 <value type="double">135</value>
1112 <desc>Move rudder left or decrease autopilot heading.</desc>
1114 <command>property-adjust</command>
1115 <property>/autopilot/control-overrides/rudder</property>
1116 <step type="double">-0.05</step>
1122 <!-- end of keyboard.xml -->