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>zoom in (decrease field of view)</desc>
258 <command>property-multiply</command>
259 <property>/sim/current-view/field-of-view</property>
260 <factor type="double">0.9523809523809523</factor> <!-- 1 / 1.05 -->
266 <desc>Left brake</desc>
268 <command>property-assign</command>
269 <property>/controls/brakes[0]</property>
270 <value type="double">1.0</value>
274 <command>property-assign</command>
275 <property>/controls/brakes[0]</property>
276 <value type="double">0.0</value>
283 <desc>zoom out (decrease field of view)</desc>
285 <command>property-multiply</command>
286 <property>/sim/current-view/field-of-view</property>
287 <factor type="double">1.05</factor>
293 <desc>Right brake</desc>
295 <command>property-assign</command>
296 <property>/controls/brakes[1]</property>
297 <value type="double">1.0</value>
301 <command>property-assign</command>
302 <property>/controls/brakes[1]</property>
303 <value type="double">0.0</value>
310 <desc>Move rudder left or increase autopilot heading.</desc>
312 <command>property-adjust</command>
313 <property>/autopilot/control-overrides/rudder</property>
314 <step type="double">-0.05</step>
320 <desc>Decrease elevator trim.</desc>
322 <command>property-adjust</command>
323 <property>/controls/elevator-trim</property>
324 <step type="double">-0.001</step>
327 <desc>Look back left</desc>
329 <command>property-assign</command>
330 <property>/sim/current-view/goal-heading-offset-deg</property>
331 <value alias="/sim/view/config/back-left-direction-deg"/>
338 <desc>Increase elevator or autopilot altitude.</desc>
340 <command>property-adjust</command>
341 <property>/autopilot/control-overrides/elevator</property>
342 <step type="double">-0.01</step>
345 <desc>Look back.</desc>
347 <command>property-assign</command>
348 <property>/sim/current-view/goal-heading-offset-deg</property>
349 <value alias="/sim/view/config/back-direction-deg"/>
356 <desc>Decrease throttle or autopilot autothrottle.</desc>
358 <command>property-adjust</command>
359 <property>/autopilot/control-overrides/throttle</property>
360 <step type="double">-0.01</step>
363 <desc>Look back right.</desc>
365 <command>property-assign</command>
366 <property>/sim/current-view/goal-heading-offset-deg</property>
367 <value alias="/sim/view/config/back-right-direction-deg"/>
374 <desc>Move aileron left.</desc>
376 <command>property-adjust</command>
377 <property>/controls/aileron</property>
378 <step type="double">-0.05</step>
381 <desc>Look left.</desc>
383 <command>property-assign</command>
384 <property>/sim/current-view/goal-heading-offset-deg</property>
385 <value alias="/sim/view/config/left-direction-deg"/>
392 <desc>Center aileron, elevator, and rudder.</desc>
394 <command>property-assign</command>
395 <property>/controls/aileron</property>
396 <value type="double">0.0</value>
399 <command>property-assign</command>
400 <property>/controls/elevator</property>
401 <value type="double">0.0</value>
404 <command>property-assign</command>
405 <property>/controls/rudder</property>
406 <value type="double">0.0</value>
412 <desc>Move aileron right.</desc>
414 <command>property-adjust</command>
415 <property>/controls/aileron</property>
416 <step type="double">0.05</step>
419 <desc>Look right.</desc>
421 <command>property-assign</command>
422 <property>/sim/current-view/goal-heading-offset-deg</property>
423 <value alias="/sim/view/config/right-direction-deg"/>
430 <desc>Increase elevator trim.</desc>
432 <command>property-adjust</command>
433 <property>/controls/elevator-trim</property>
434 <step type="double">0.001</step>
437 <desc>Look front left.</desc>
439 <command>property-assign</command>
440 <property>/sim/current-view/goal-heading-offset-deg</property>
441 <value alias="/sim/view/config/front-left-direction-deg"/>
448 <desc>Decrease elevator or autopilot altitude.</desc>
450 <command>property-adjust</command>
451 <property>/autopilot/control-overrides/elevator</property>
452 <step type="double">0.01</step>
455 <desc>Look forward.</desc>
457 <command>property-assign</command>
458 <property>/sim/current-view/goal-heading-offset-deg</property>
459 <value alias="/sim/view/config/front-direction-deg"/>
466 <desc>Increase throttle or autopilot autothrottle.</desc>
468 <command>property-adjust</command>
469 <property>/autopilot/control-overrides/throttle</property>
470 <step type="double">0.01</step>
473 <desc>Look front right.</desc>
475 <command>property-assign</command>
476 <property>/sim/current-view/goal-heading-offset-deg</property>
477 <value alias="/sim/view/config/front-right-direction-deg"/>
484 <desc>Reset zoom to default</desc>
486 <command>property-assign</command>
487 <property>/sim/current-view/field-of-view</property>
488 <value type="double">55.0</value>
494 <desc>Select second engine</desc>
496 <command>property-assign</command>
497 <property>/sim/input/selected/engine[0]</property>
498 <value type="bool">false</value>
501 <command>property-assign</command>
502 <property>/sim/input/selected/engine[1]</property>
503 <value type="bool">true</value>
506 <command>property-assign</command>
507 <property>/sim/input/selected/engine[2]</property>
508 <value type="bool">false</value>
511 <command>property-assign</command>
512 <property>/sim/input/selected/engine[3]</property>
513 <value type="bool">false</value>
519 <desc>Decrease speed-up.</desc>
521 <command>property-adjust</command>
522 <property>/sim/speed-up</property>
524 <step type="double">-1</step>
530 <desc>Toggle parking brake on or off</desc>
532 <command>property-toggle</command>
533 <property>/controls/parking-brake</property>
539 <desc>Decrease warp.</desc>
541 <command>property-adjust</command>
542 <property>/sim/time/warp</property>
543 <step type="int">-60</step>
549 <desc>Toggle panel.</desc>
551 <command>property-toggle</command>
552 <property>/sim/panel/visibility</property>
558 <desc>Decrease warp delta.</desc>
560 <command>property-adjust</command>
561 <property>/sim/time/warp-delta</property>
562 <step type="int">-30</step>
568 <desc>(Temporary) Toggle fullscreen for 3DFX only.</desc>
570 <command>property-toggle</command>
571 <property>/sim/temp/full-screen</property>
577 <desc>Increase field of view.</desc>
579 <command>property-multiply</command>
580 <property>/sim/current-view/field-of-view</property>
581 <factor type="double">1.05</factor>
587 <desc>Decrease Visibility</desc>
589 <command>property-multiply</command>
590 <property>/environment/visibility-m</property>
591 <factor type="double">0.9090909090</factor>
597 <desc>Decrease flaps.</desc>
599 <command>property-adjust</command>
600 <property>/controls/flaps</property>
601 <step type="double">-0.34</step>
607 <desc>Increase flaps.</desc>
609 <command>property-adjust</command>
610 <property>/controls/flaps</property>
611 <step type="double">0.34</step>
617 <desc>Increase speed-up.</desc>
619 <command>property-adjust</command>
620 <property>/sim/speed-up</property>
622 <step type="double">1</step>
628 <desc>Apply all brakes.</desc>
630 <command>property-assign</command>
631 <property>/controls/brakes[0]</property>
632 <value type="double">1.0</value>
635 <command>property-assign</command>
636 <property>/controls/brakes[1]</property>
637 <value type="double">1.0</value>
640 <command>property-assign</command>
641 <property>/controls/brakes[2]</property>
642 <value type="double">1.0</value>
645 <desc>Release all brakes.</desc>
647 <command>property-assign</command>
648 <property>/controls/brakes[0]</property>
649 <value type="double">0.0</value>
652 <command>property-assign</command>
653 <property>/controls/brakes[1]</property>
654 <value type="double">0.0</value>
657 <command>property-assign</command>
658 <property>/controls/brakes[2]</property>
659 <value type="double">0.0</value>
666 <desc>Toggle 3D/2D cockpit</desc>
669 <property>/sim/allow-toggle-cockpit</property>
671 <command>property-assign</command>
672 <property>/sim/current-view/heading-offset-deg</property>
673 <value type="double">0</value>
677 <property>/sim/allow-toggle-cockpit</property>
679 <command>property-assign</command>
680 <property>/sim/current-view/pitch-offset-deg</property>
681 <value type="double">0</value>
685 <property>/sim/allow-toggle-cockpit</property>
687 <command>property-toggle</command>
688 <property>/sim/view/internal</property>
692 <property>/sim/allow-toggle-cockpit</property>
694 <command>property-toggle</command>
695 <property>/sim/virtual-cockpit</property>
701 <desc>Toggle gear down.</desc>
703 <command>property-toggle</command>
704 <property>/controls/gear-down</property>
710 <desc>Toggle tail-wheel lock.</desc>
712 <command>property-toggle</command>
713 <property>/controls/tailwheel-castering</property>
719 <desc>Increase warp.</desc>
721 <command>property-adjust</command>
722 <property>/sim/time/warp</property>
723 <step type="int">60</step>
729 <desc>Toggle the pause state of the sim.</desc>
731 <command>property-toggle</command>
732 <property>/sim/freeze/master</property>
735 <command>property-toggle</command>
736 <property>/sim/freeze/clock</property>
742 <desc>Swap panels.</desc>
746 <property>/sim/allow-toggle-cockpit</property>
749 <command>property-swap</command>
750 <property>/sim/panel/path</property>
751 <property>/sim/panel_2/path</property>
756 <property>/sim/allow-toggle-cockpit</property>
759 <desc>Load panel.</desc>
760 <command>panel-load</command>
766 <desc>Increase warp delta.</desc>
768 <command>property-adjust</command>
769 <property>/sim/time/warp-delta</property>
770 <step type="int">30</step>
776 <desc>Cycle view</desc>
778 <command>view-cycle</command>
784 <desc>Decrease field of view.</desc>
786 <command>property-multiply</command>
787 <property>/sim/current-view/field-of-view</property>
788 <factor type="double">0.952380952380</factor>
794 <desc>Increase Visibility</desc>
796 <command>property-multiply</command>
797 <property>/environment/visibility-m</property>
798 <factor type="double">1.1</factor>
804 <desc>Decrease Magneto on Selected Engine</desc>
806 <desc>first engine</desc>
808 <property>/sim/input/selected/engine[0]</property>
810 <command>property-adjust</command>
811 <property>/controls/magnetos[0]</property>
812 <step type="int">-1</step>
815 <desc>second engine</desc>
817 <property>/sim/input/selected/engine[1]</property>
819 <command>property-adjust</command>
820 <property>/controls/magnetos[1]</property>
821 <step type="int">-1</step>
824 <desc>third engine</desc>
826 <property>/sim/input/selected/engine[2]</property>
828 <command>property-adjust</command>
829 <property>/controls/magnetos[2]</property>
830 <step type="int">-1</step>
833 <desc>fourth engine</desc>
835 <property>/sim/input/selected/engine[3]</property>
837 <command>property-adjust</command>
838 <property>/controls/magnetos[3]</property>
839 <step type="int">-1</step>
845 <desc>Increase Magneto on Selected Engine</desc>
847 <desc>first engine</desc>
849 <property>/sim/input/selected/engine[0]</property>
851 <command>property-adjust</command>
852 <property>/controls/magnetos[0]</property>
853 <step type="int">1</step>
856 <desc>second engine</desc>
858 <property>/sim/input/selected/engine[1]</property>
860 <command>property-adjust</command>
861 <property>/controls/magnetos[1]</property>
862 <step type="int">1</step>
868 <desc>Select all engines</desc>
870 <command>property-assign</command>
871 <property>/sim/input/selected/engine[0]</property>
872 <value type="bool">true</value>
875 <command>property-assign</command>
876 <property>/sim/input/selected/engine[1]</property>
877 <value type="bool">true</value>
880 <command>property-assign</command>
881 <property>/sim/input/selected/engine[2]</property>
882 <value type="bool">true</value>
885 <command>property-assign</command>
886 <property>/sim/input/selected/engine[3]</property>
887 <value type="bool">true</value>
895 <desc>Load flight.</desc>
896 <command>load</command>
904 <desc>Force tile cache reload.</desc>
905 <command>tile-cache-reload</command>
909 <desc>Save flight.</desc>
910 <command>save</command>
911 <write-all>false</write-all>
918 <desc>Capture screen.</desc>
920 <command>screen-capture</command>
924 <desc>Load panel.</desc>
925 <command>panel-load</command>
933 <desc>Force lighting update.</desc>
934 <command>lighting-update</command>
938 <desc>Reload global preferences.</desc>
939 <command>preferences-load</command>
948 <desc>Scroll panel down</desc>
949 <command>property-adjust</command>
950 <property>/sim/panel/y-offset</property>
951 <step type="int">-5</step>
960 <desc>Scroll panel up</desc>
961 <command>property-adjust</command>
962 <property>/sim/panel/y-offset</property>
963 <step type="int">5</step>
972 <desc>Scroll panel left</desc>
973 <command>property-adjust</command>
974 <property>/sim/panel/x-offset</property>
975 <step type="int">-5</step>
984 <desc>Scroll panel right</desc>
985 <command>property-adjust</command>
986 <property>/sim/panel/x-offset</property>
987 <step type="int">5</step>
995 <desc>Toggle textures.</desc>
996 <command>property-toggle</command>
997 <property>/sim/rendering/textures</property>
1005 <desc>Toggle FDM data logging.</desc>
1006 <command>property-toggle</command>
1007 <property>/sim/temp/fdm-data-logging</property>
1014 <desc>Move rudder right or increase autopilot heading.</desc>
1016 <command>property-adjust</command>
1017 <property>/autopilot/control-overrides/rudder</property>
1018 <step type="double">0.05</step>
1023 <name>Keypad 5</name>
1024 <desc>Center aileron, elevator, and rudder.</desc>
1026 <command>property-assign</command>
1027 <property>/controls/aileron</property>
1028 <value type="double">0.0</value>
1031 <command>property-assign</command>
1032 <property>/controls/elevator</property>
1033 <value type="double">0.0</value>
1036 <command>property-assign</command>
1037 <property>/controls/rudder</property>
1038 <value type="double">0.0</value>
1044 <desc>Move aileron left.</desc>
1046 <command>property-adjust</command>
1047 <property>/controls/aileron</property>
1048 <step type="double">-0.05</step>
1051 <desc>Look left.</desc>
1053 <command>property-assign</command>
1054 <property>/sim/current-view/goal-heading-offset-deg</property>
1055 <value alias="/sim/view/config/left-direction-deg"/>
1062 <desc>Increase elevator or autopilot altitude.</desc>
1064 <command>property-adjust</command>
1065 <property>/autopilot/control-overrides/elevator</property>
1066 <step type="double">0.05</step>
1069 <desc>Look forward.</desc>
1071 <command>property-assign</command>
1072 <property>/sim/current-view/goal-heading-offset-deg</property>
1073 <value alias="/sim/view/config/front-direction-deg"/>
1080 <desc>Move aileron right.</desc>
1082 <command>property-adjust</command>
1083 <property>/controls/aileron</property>
1084 <step type="double">0.05</step>
1087 <desc>Look right.</desc>
1089 <command>property-assign</command>
1090 <property>/sim/current-view/goal-heading-offset-deg</property>
1091 <value alias="/sim/view/config/right-direction-deg"/>
1098 <desc>Decrease elevator or autopilot altitude.</desc>
1100 <command>property-adjust</command>
1101 <property>/autopilot/control-overrides/elevator</property>
1102 <step type="double">-0.05</step>
1105 <desc>Look backwards.</desc>
1107 <command>property-assign</command>
1108 <property>/sim/current-view/goal-heading-offset-deg</property>
1109 <value alias="/sim/view/config/back-direction-deg"/>
1116 <desc>Increase throttle or autopilot autothrottle.</desc>
1118 <command>property-adjust</command>
1119 <property>/autopilot/control-overrides/throttle</property>
1120 <step type="double">0.01</step>
1123 <desc>Look front right.</desc>
1125 <command>property-assign</command>
1126 <property>/sim/current-view/goal-heading-offset-deg</property>
1127 <value alias="/sim/view/config/front-right-direction-deg"/>
1133 <name>PageDown</name>
1134 <desc>Decrease throttle or autopilot autothrottle.</desc>
1136 <command>property-adjust</command>
1137 <property>/autopilot/control-overrides/throttle</property>
1138 <step type="double">-0.01</step>
1141 <desc>Look back right.</desc>
1143 <command>property-assign</command>
1144 <property>/sim/current-view/goal-heading-offset-deg</property>
1145 <value alias="/sim/view/config/back-right-direction-deg"/>
1152 <desc>Increase elevator trim.</desc>
1154 <command>property-adjust</command>
1155 <property>/controls/elevator-trim</property>
1156 <step type="double">0.001</step>
1159 <desc>Look front left.</desc>
1161 <command>property-assign</command>
1162 <property>/sim/current-view/goal-heading-offset-deg</property>
1163 <value alias="/sim/view/config/front-left-direction-deg"/>
1170 <desc>Decrease elevator trim.</desc>
1172 <command>property-adjust</command>
1173 <property>/controls/elevator-trim</property>
1174 <step type="double">-0.001</step>
1177 <desc>Look back left.</desc>
1179 <command>property-assign</command>
1180 <property>/sim/current-view/goal-heading-offset-deg</property>
1181 <value alias="/sim/view/config/back-left-direction-deg"/>
1188 <desc>Move rudder left or decrease autopilot heading.</desc>
1190 <command>property-adjust</command>
1191 <property>/autopilot/control-overrides/rudder</property>
1192 <step type="double">-0.05</step>
1198 <!-- end of keyboard.xml -->