Debian Codegraph @

Aircraft/c172p/c172p-keyboard.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4 Copyright (c) 2011 Stuart Buchanan
5
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18 -->
19
20 <PropertyList>
21
22 <!-- Overwrite FGCom PTT (space) -->
23 <key n="32">
24 <name>SPACE</name>
25 <desc>PTT - Push To Talk (via FGCom) but select radio</desc>
26 <binding>
27 <command>nasal</command>
28 <script>c172p.kma20.instances[0].fgcom.ptt(1, 0)</script>
29 </binding>
30 <mod-up>
31 <binding>
32 <command>nasal</command>
33 <script>c172p.kma20.instances[0].fgcom.ptt(0, 0)</script>
34 </binding>
35 </mod-up>
36 <mod-shift>
37 <binding>
38 <command>nasal</command>
39 <script>c172p.kma20.instances[0].fgcom.ptt(1, 1)</script>
40 </binding>
41 <mod-up>
42 <binding>
43 <command>nasal</command>
44 <script>c172p.kma20.instances[0].fgcom.ptt(0, 1)</script>
45 </binding>
46 </mod-up>
47 </mod-shift>
48 </key>
49
50 <key n="80">
51 <name>P</name>
52 <desc>Toggle panel</desc>
53 <binding>
54 <command>property-toggle</command>
55 <property>/sim/panel/visibility</property>
56 </binding>
57 <binding>
58 <command>property-assign</command>
59 <property>/sim/current-view/heading-offset-deg</property>
60 <value type="double">0.0</value>
61 </binding>
62 </key>
63
64 <key n="76">
65 <name>L</name>
66 <desc>Decrease Panel lighting</desc>
67 <repeatable type="bool">true</repeatable>
68 <binding>
69 <command>property-adjust</command>
70 <property>controls/lighting/instruments-norm</property>
71 <step>-0.1</step>
72 <min>0</min>
73 <max>1.0</max>
74 <wrap>0</wrap>
75 </binding>
76 </key>
77
78 <key n="79">
79 <name>O</name>
80 <desc>Open aerotow-hook</desc>
81 <binding>
82 <command>nasal</command>
83 <script>towing.releaseHitch("aerotow")</script>
84 </binding>
85 </key>
86
87 <key n="70">
88 <name>F</name>
89 <desc>Toggle flashlight</desc>
90 <repeatable type="bool">true</repeatable>
91 <binding>
92 <command>property-cycle</command>
93 <property>/sim/walker/flashlight/mode</property>
94 <value type="int">0</value> <!-- off -->
95 <value type="int">1</value> <!-- white -->
96 <value type="int">2</value> <!-- red -->
97 </binding>
98 </key>
99
100 <key n="102">
101 <name>f</name>
102 <desc>Toggle flashlight</desc>
103 <repeatable type="bool">true</repeatable>
104 <binding>
105 <command>property-cycle</command>
106 <property>/sim/walker/flashlight/mode</property>
107 <value type="int">0</value> <!-- off -->
108 <value type="int">1</value> <!-- white -->
109 <value type="int">2</value> <!-- red -->
110 </binding>
111 </key>
112
113 <key n="100">
114 <name>d</name>
115 <desc>CWS Button KAP 140</desc>
116 <binding n="20">
117 <command>property-assign</command>
118 <property>autopilot/kap140/settings/cws</property>
119 <value>1</value>
120 </binding>
121 <mod-up>
122 <binding n="20">
123 <command>property-assign</command>
124 <property>autopilot/kap140/settings/cws</property>
125 <value>0</value>
126 </binding>
127 </mod-up>
128 </key>
129 <key n="68">
130 <name>D</name>
131 <desc>AP-DISC Button KAP 140</desc>
132 <binding n="20">
133 <command>property-assign</command>
134 <property>autopilot/kap140/settings/ap-disc</property>
135 <value>1</value>
136 </binding>
137 <mod-up>
138 <binding n="20">
139 <command>property-assign</command>
140 <property>autopilot/kap140/settings/ap-disc</property>
141 <value>0</value>
142 </binding>
143 </mod-up>
144 </key>
145
146 <key n="108">
147 <name>l</name>
148 <desc>Increase Panel lighting</desc>
149 <repeatable type="bool">true</repeatable>
150 <binding>
151 <command>property-adjust</command>
152 <property>controls/lighting/instruments-norm</property>
153 <step>0.1</step>
154 <min>0</min>
155 <max>1.0</max>
156 <wrap>0</wrap>
157 </binding>
158 </key>
159
160 <key n="111">
161 <name>o</name>
162 <desc>Toggle Dome Lighting</desc>
163 <binding>
164 <command>nasal</command>
165 <script>c172p.toggle_domelight()</script>
166 </binding>
167 </key>
168
169 <key n="123">
170 <name>{</name>
171 <desc>Decrease Magneto on Selected Engine</desc>
172 <binding>
173 <command>property-adjust</command>
174 <property>/controls/switches/magnetos</property>
175 <step>-1</step>
176 <min>0</min>
177 <max>3</max>
178 </binding>
179 <binding>
180 <command>nasal</command>
181 <script>c172p.click("magneto-back")</script>
182 </binding>
183 </key>
184
185 <key n="125">
186 <name>}</name>
187 <desc>Increase Magneto on Selected Engine</desc>
188 <binding>
189 <command>property-adjust</command>
190 <property>/controls/switches/magnetos</property>
191 <step>1</step>
192 <min>0</min>
193 <max>3</max>
194 </binding>
195 <binding>
196 <command>nasal</command>
197 <script>c172p.click("magneto-forward")</script>
198 </binding>
199 </key>
200
201 <key n="114">
202 <name>r</name>
203 <desc>Water Rudders Up</desc>
204 <binding>
205 <command>property-assign</command>
206 <property>/controls/gear/water-rudder</property>
207 <value type="bool">false</value>
208 </binding>
209 </key>
210
211 <key n="82">
212 <name>R</name>
213 <desc>Water Rudders Down</desc>
214 <binding>
215 <command>property-assign</command>
216 <property>/controls/gear/water-rudder</property>
217 <value type="bool">true</value>
218 </binding>
219 </key>
220
221 <key n="66">
222 <name>B</name>
223 <desc>Parking Brakes</desc>
224 <binding>
225 <command>property-toggle</command>
226 <property>/controls/gear/brake-parking</property>
227 </binding>
228 </key>
229
230 <key n="121">
231 <name>y</name>
232 <desc>Show/hide yokes</desc>
233 <binding>
234 <command>property-toggle</command>
235 <property>sim/model/hide-yoke</property>
236 </binding>
237 <binding>
238 <command>property-assign</command>
239 <property>sim/model/c172p/cockpit/control-lock-placed</property>
240 <value>false</value>
241 </binding>
242 </key>
243
244 <key n="265">
245 <name>F9</name>
246 <desc>Popup Fuel and Payload Settings dialog</desc>
247 <binding>
248 <command>nasal</command>
249 <script>gui.showWeightDialog()</script>
250 </binding>
251 </key>
252
253 <key n="81">
254 <name>Q</name>
255 <desc>Reset to default view</desc>
256 <binding>
257 <command>nasal</command>
258 <script>c172p.reset_view(0)</script>
259 </binding>
260 </key>
261
262 <key n="113">
263 <name>q</name>
264 <desc>Reset to saved seat view</desc>
265 <binding>
266 <command>nasal</command>
267 <script>c172p.reset_view(1)</script>
268 </binding>
269 </key>
270
271 <key n="51">
272 <name>Alt+3</name>
273 <desc>Seat Down</desc>
274 <mod-alt>
275 <binding>
276 <condition>
277 <equals>
278 <property>sim/current-view/view-number</property>
279 <value>0</value>
280 </equals>
281 </condition>
282 <command>nasal</command>
283 <script>c172p.update_view();</script>
284 </binding>
285 <binding>
286 <condition>
287 <equals>
288 <property>sim/current-view/view-number</property>
289 <value>0</value>
290 </equals>
291 </condition>
292 <command>property-adjust</command>
293 <property>sim/current-view/user/y-offset-m</property>
294 <step type="double">-0.005</step>
295 <min type="double">0.15</min>
296 <max type="double">0.25</max>
297 </binding>
298 <binding>
299 <condition>
300 <equals>
301 <property>sim/current-view/view-number</property>
302 <value>0</value>
303 </equals>
304 </condition>
305 <command>property-adjust</command>
306 <property>sim/current-view/y-offset-m</property>
307 <step type="double">-0.005</step>
308 <min type="double">0.15</min>
309 <max type="double">0.25</max>
310 </binding>
311 </mod-alt>
312 </key>
313 <key n="361">
314 <name>Alt+pgdn</name>
315 <desc>Seat Down</desc>
316 <mod-alt>
317 <binding>
318 <condition>
319 <equals>
320 <property>sim/current-view/view-number</property>
321 <value>0</value>
322 </equals>
323 </condition>
324 <command>nasal</command>
325 <script>c172p.update_view();</script>
326 </binding>
327 <binding>
328 <condition>
329 <equals>
330 <property>sim/current-view/view-number</property>
331 <value>0</value>
332 </equals>
333 </condition>
334 <command>property-adjust</command>
335 <property>sim/current-view/user/y-offset-m</property>
336 <step type="double">-0.005</step>
337 <min type="double">0.15</min>
338 <max type="double">0.25</max>
339 </binding>
340 <binding>
341 <condition>
342 <equals>
343 <property>sim/current-view/view-number</property>
344 <value>0</value>
345 </equals>
346 </condition>
347 <command>property-adjust</command>
348 <property>sim/current-view/y-offset-m</property>
349 <step type="double">-0.005</step>
350 <min type="double">0.15</min>
351 <max type="double">0.25</max>
352 </binding>
353 </mod-alt>
354 </key>
355
356 <key n="57">
357 <name>Alt+9</name>
358 <desc>Seat Up</desc>
359 <mod-alt>
360 <binding>
361 <condition>
362 <equals>
363 <property>sim/current-view/view-number</property>
364 <value>0</value>
365 </equals>
366 </condition>
367 <command>nasal</command>
368 <script>c172p.update_view();</script>
369 </binding>
370 <binding>
371 <condition>
372 <equals>
373 <property>sim/current-view/view-number</property>
374 <value>0</value>
375 </equals>
376 </condition>
377 <command>property-adjust</command>
378 <property>sim/current-view/user/y-offset-m</property>
379 <step type="double">0.005</step>
380 <min type="double">0.15</min>
381 <max type="double">0.25</max>
382 </binding>
383 <binding>
384 <condition>
385 <equals>
386 <property>sim/current-view/view-number</property>
387 <value>0</value>
388 </equals>
389 </condition>
390 <command>property-adjust</command>
391 <property>sim/current-view/y-offset-m</property>
392 <step type="double">0.005</step>
393 <min type="double">0.15</min>
394 <max type="double">0.25</max>
395 </binding>
396 </mod-alt>
397 </key>
398 <key n="360">
399 <name>Alt+pgup</name>
400 <desc>Seat Up</desc>
401 <mod-alt>
402 <binding>
403 <condition>
404 <equals>
405 <property>sim/current-view/view-number</property>
406 <value>0</value>
407 </equals>
408 </condition>
409 <command>nasal</command>
410 <script>c172p.update_view();</script>
411 </binding>
412 <binding>
413 <condition>
414 <equals>
415 <property>sim/current-view/view-number</property>
416 <value>0</value>
417 </equals>
418 </condition>
419 <command>property-adjust</command>
420 <property>sim/current-view/user/y-offset-m</property>
421 <step type="double">0.005</step>
422 <min type="double">0.15</min>
423 <max type="double">0.25</max>
424 </binding>
425 <binding>
426 <condition>
427 <equals>
428 <property>sim/current-view/view-number</property>
429 <value>0</value>
430 </equals>
431 </condition>
432 <command>property-adjust</command>
433 <property>sim/current-view/y-offset-m</property>
434 <step type="double">0.005</step>
435 <min type="double">0.15</min>
436 <max type="double">0.25</max>
437 </binding>
438 </mod-alt>
439 </key>
440
441 <key n="56">
442 <name>Alt+8</name>
443 <desc>Seat Forward</desc>
444 <mod-alt>
445 <binding>
446 <condition>
447 <equals>
448 <property>sim/current-view/view-number</property>
449 <value>0</value>
450 </equals>
451 </condition>
452 <command>nasal</command>
453 <script>c172p.update_view();</script>
454 </binding>
455 <binding>
456 <condition>
457 <equals>
458 <property>sim/current-view/view-number</property>
459 <value>0</value>
460 </equals>
461 </condition>
462 <command>property-adjust</command>
463 <property>sim/current-view/user/z-offset-m</property>
464 <step type="double">-0.005</step>
465 <min type="double">0.31</min>
466 <max type="double">0.41</max>
467 </binding>
468 <binding>
469 <condition>
470 <equals>
471 <property>sim/current-view/view-number</property>
472 <value>0</value>
473 </equals>
474 </condition>
475 <command>property-adjust</command>
476 <property>sim/current-view/z-offset-m</property>
477 <step type="double">-0.005</step>
478 <min type="double">0.31</min>
479 <max type="double">0.41</max>
480 </binding>
481 </mod-alt>
482 </key>
483 <key n="357">
484 <name>Alt+8</name>
485 <desc>Seat Forward</desc>
486 <mod-alt>
487 <binding>
488 <condition>
489 <equals>
490 <property>sim/current-view/view-number</property>
491 <value>0</value>
492 </equals>
493 </condition>
494 <command>nasal</command>
495 <script>c172p.update_view();</script>
496 </binding>
497 <binding>
498 <condition>
499 <equals>
500 <property>sim/current-view/view-number</property>
501 <value>0</value>
502 </equals>
503 </condition>
504 <command>property-adjust</command>
505 <property>sim/current-view/user/z-offset-m</property>
506 <step type="double">-0.005</step>
507 <min type="double">0.31</min>
508 <max type="double">0.41</max>
509 </binding>
510 <binding>
511 <condition>
512 <equals>
513 <property>sim/current-view/view-number</property>
514 <value>0</value>
515 </equals>
516 </condition>
517 <command>property-adjust</command>
518 <property>sim/current-view/z-offset-m</property>
519 <step type="double">-0.005</step>
520 <min type="double">0.31</min>
521 <max type="double">0.41</max>
522 </binding>
523 </mod-alt>
524 </key>
525
526 <key n="50">
527 <name>Alt+2</name>
528 <desc>Seat Back</desc>
529 <mod-alt>
530 <binding>
531 <condition>
532 <equals>
533 <property>sim/current-view/view-number</property>
534 <value>0</value>
535 </equals>
536 </condition>
537 <command>nasal</command>
538 <script>c172p.update_view();</script>
539 </binding>
540 <binding>
541 <condition>
542 <equals>
543 <property>sim/current-view/view-number</property>
544 <value>0</value>
545 </equals>
546 </condition>
547 <command>property-adjust</command>
548 <property>sim/current-view/user/z-offset-m</property>
549 <step type="double">0.005</step>
550 <min type="double">0.31</min>
551 <max type="double">0.41</max>
552 </binding>
553 <binding>
554 <condition>
555 <equals>
556 <property>sim/current-view/view-number</property>
557 <value>0</value>
558 </equals>
559 </condition>
560 <command>property-adjust</command>
561 <property>sim/current-view/z-offset-m</property>
562 <step type="double">0.005</step>
563 <min type="double">0.31</min>
564 <max type="double">0.41</max>
565 </binding>
566 </mod-alt>
567 </key>
568 <key n="359">
569 <name>Alt+2</name>
570 <desc>Seat Back</desc>
571 <mod-alt>
572 <binding>
573 <condition>
574 <equals>
575 <property>sim/current-view/view-number</property>
576 <value>0</value>
577 </equals>
578 </condition>
579 <command>nasal</command>
580 <script>c172p.update_view();</script>
581 </binding>
582 <binding>
583 <condition>
584 <equals>
585 <property>sim/current-view/view-number</property>
586 <value>0</value>
587 </equals>
588 </condition>
589 <command>property-adjust</command>
590 <property>sim/current-view/user/z-offset-m</property>
591 <step type="double">0.005</step>
592 <min type="double">0.31</min>
593 <max type="double">0.41</max>
594 </binding>
595 <binding>
596 <condition>
597 <equals>
598 <property>sim/current-view/view-number</property>
599 <value>0</value>
600 </equals>
601 </condition>
602 <command>property-adjust</command>
603 <property>sim/current-view/z-offset-m</property>
604 <step type="double">0.005</step>
605 <min type="double">0.31</min>
606 <max type="double">0.41</max>
607 </binding>
608 </mod-alt>
609 </key>
610
611 <key n="54">
612 <name>Alt+6</name>
613 <desc>Seat Pitch Down</desc>
614 <mod-alt>
615 <binding>
616 <condition>
617 <equals>
618 <property>sim/current-view/view-number</property>
619 <value>0</value>
620 </equals>
621 </condition>
622 <command>nasal</command>
623 <script>c172p.update_view();</script>
624 </binding>
625 <binding>
626 <condition>
627 <equals>
628 <property>sim/current-view/view-number</property>
629 <value>0</value>
630 </equals>
631 </condition>
632 <command>property-adjust</command>
633 <property>sim/current-view/user/pitch-offset-deg</property>
634 <step type="double">-1</step>
635 <min type="double">-17</min>
636 <max type="double">-0</max>
637 </binding>
638 <binding>
639 <condition>
640 <equals>
641 <property>sim/current-view/view-number</property>
642 <value>0</value>
643 </equals>
644 </condition>
645 <command>property-adjust</command>
646 <property>sim/current-view/pitch-offset-deg</property>
647 <step type="double">-1</step>
648 <min type="double">-17</min>
649 <max type="double">-0</max>
650 </binding>
651 </mod-alt>
652 </key>
653 <key n="358">
654 <name>Alt+6</name>
655 <desc>Seat Pitch Down</desc>
656 <mod-alt>
657 <binding>
658 <condition>
659 <equals>
660 <property>sim/current-view/view-number</property>
661 <value>0</value>
662 </equals>
663 </condition>
664 <command>nasal</command>
665 <script>c172p.update_view();</script>
666 </binding>
667 <binding>
668 <condition>
669 <equals>
670 <property>sim/current-view/view-number</property>
671 <value>0</value>
672 </equals>
673 </condition>
674 <command>property-adjust</command>
675 <property>sim/current-view/user/pitch-offset-deg</property>
676 <step type="double">-1</step>
677 <min type="double">-17</min>
678 <max type="double">-0</max>
679 </binding>
680 <binding>
681 <condition>
682 <equals>
683 <property>sim/current-view/view-number</property>
684 <value>0</value>
685 </equals>
686 </condition>
687 <command>property-adjust</command>
688 <property>sim/current-view/pitch-offset-deg</property>
689 <step type="double">-1</step>
690 <min type="double">-17</min>
691 <max type="double">-0</max>
692 </binding>
693 </mod-alt>
694 </key>
695
696 <key n="52">
697 <name>Alt+4</name>
698 <desc>Seat Pitch Up</desc>
699 <mod-alt>
700 <binding>
701 <condition>
702 <equals>
703 <property>sim/current-view/view-number</property>
704 <value>0</value>
705 </equals>
706 </condition>
707 <command>nasal</command>
708 <script>c172p.update_view();</script>
709 </binding>
710 <binding>
711 <condition>
712 <equals>
713 <property>sim/current-view/view-number</property>
714 <value>0</value>
715 </equals>
716 </condition>
717 <command>property-adjust</command>
718 <property>sim/current-view/user/pitch-offset-deg</property>
719 <step type="double">1</step>
720 <min type="double">-17</min>
721 <max type="double">0</max>
722 </binding>
723 <binding>
724 <condition>
725 <equals>
726 <property>sim/current-view/view-number</property>
727 <value>0</value>
728 </equals>
729 </condition>
730 <command>property-adjust</command>
731 <property>sim/current-view/pitch-offset-deg</property>
732 <step type="double">1</step>
733 <min type="double">-17</min>
734 <max type="double">0</max>
735 </binding>
736 </mod-alt>
737 </key>
738 <key n="356">
739 <name>Alt+4</name>
740 <desc>Seat Pitch Up</desc>
741 <mod-alt>
742 <binding>
743 <condition>
744 <equals>
745 <property>sim/current-view/view-number</property>
746 <value>0</value>
747 </equals>
748 </condition>
749 <command>nasal</command>
750 <script>c172p.update_view();</script>
751 </binding>
752 <binding>
753 <condition>
754 <equals>
755 <property>sim/current-view/view-number</property>
756 <value>0</value>
757 </equals>
758 </condition>
759 <command>property-adjust</command>
760 <property>sim/current-view/user/pitch-offset-deg</property>
761 <step type="double">1</step>
762 <min type="double">-17</min>
763 <max type="double">0</max>
764 </binding>
765 <binding>
766 <condition>
767 <equals>
768 <property>sim/current-view/view-number</property>
769 <value>0</value>
770 </equals>
771 </condition>
772 <command>property-adjust</command>
773 <property>sim/current-view/pitch-offset-deg</property>
774 <step type="double">1</step>
775 <min type="double">-17</min>
776 <max type="double">0</max>
777 </binding>
778 </mod-alt>
779 </key>
780
781 <key n="71">
782 <name>G</name>
783 <desc>Gear down</desc>
784 <binding>
785 <command>property-assign</command>
786 <property>controls/gear/gear-down-command</property>
787 <value type="bool">true</value>
788 </binding>
789 </key>
790
791 <key n="103">
792 <name>g</name>
793 <desc>Gear Up</desc>
794 <binding>
795 <command>property-assign</command>
796 <property>controls/gear/gear-down-command</property>
797 <value type="bool">false</value>
798 </binding>
799 </key>
800
801 </PropertyList>