Debian Codegraph @

Input/Joysticks/Saitek/Pro-Flight-Cessna-Yoke.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2 <!-- Saitek Pro Flight Cessna Yoke
3
4 Copyright (C) 2012 Stuart Buchanan
5 This file is released under the GPL license.
6
7 Controls:
8 Axis 0: Aileron
9 Axis 1: Elevator
10 Axis 2: Throttle
11 Axis 3: Prop
12 Axis 4: Mixture
13 Axis 5/6 (Coolie Hat): View direction
14 Button 0 (left button): PTT
15 Button 1 (right button): Reset View
16 Button 2/3 (left four-way forwards/back): Angle of view
17 Button 4/5 (right vertical two-way): Elevator Trim
18 Button 6/7 (right horizontal two-way): Rudder Trim
19 Button 11/12 (left four-way left/right): View
20 Button 13/14 (left hand quadrant buttons): Flaps Up/Down
21 Buttons 15/16 (middle quadrant buttons): Gear Up/Down
22 Buttons 17/18 (right quandrant buttons): Spoilers Up/Down
23 Button 19 (Throttle < 0): Reverse Thrust
24 Button 20 (Prop < 0): Propellor Beta
25 Button 21 (Mixture <0) : Cut-off
26 Buttons 23/24/25 (right hand selector switch): View direction Sensitivity
27
28 -->
29 <PropertyList>
30 <name>Saitek Saitek Pro Flight Cessna Yoke</name>
31 <name>Saitek Pro Flight Cessna Yoke</name>
32 <name>Saitek Pro Flight Cessna Yoke</name>
33 <name>Mad Catz Pro Flight Cessna Yoke</name>
34 <name>ProFlight Cessna Yoke</name>
35 <name>Pro Flight Cessna Yoke</name>
36
37 <axis n="0">
38 <name>Yoke lepft/right</name>
39 <desc>Aileron</desc>
40 <binding>
41 <command>property-scale</command>
42 <property>/controls/flight/aileron</property>
43 </binding>
44 </axis>
45 <axis n="1">
46 <name>Yoke forward/backwards</name>
47 <desc>Elevator</desc>
48 <binding>
49 <command>property-scale</command>
50 <property>/controls/flight/elevator</property>
51 <factor type="double">-1.0</factor>
52 </binding>
53 </axis>
54 <!-- Throttle Quadrant -->
55 <axis n="2">
56 <name>Black Lever</name>
57 <desc>Throttle</desc>
58 <binding>
59 <command>nasal</command>
60 <script>controls.throttleAxis()</script>
61 </binding>
62 </axis>
63 <axis>
64 <number>
65 <unix>3</unix>
66 <windows>4</windows>
67 </number>
68 <name>Blue lever</name>
69 <desc>Propellor Pitch</desc>
70 <binding>
71 <command>nasal</command>
72 <script>controls.propellerAxis()</script>
73 </binding>
74 </axis>
75 <axis>
76 <number>
77 <unix>4</unix>
78 <windows>3</windows>
79 </number>
80 <name>Red lever</name>
81 <desc>Mixture</desc>
82 <binding>
83 <command>nasal</command>
84 <script>controls.mixtureAxis()</script>
85 </binding>
86 </axis>
87 <!-- Coolie Hat -->
88 <axis>
89 <number>
90 <unix>5</unix>
91 <windows>6</windows>
92 </number>
93 <name>Coolie hat left/right</name>
94 <desc>View Heading</desc>
95 <low>
96 <repeatable>true</repeatable>
97 <binding>
98 <command>nasal</command>
99 <script>
100 var yoke = getprop("/devices/status/yoke/offset");
101 var offset = getprop("/sim/current-view/goal-heading-offset-deg");
102 setprop("/sim/current-view/goal-heading-offset-deg", offset + yoke);
103 </script>
104 </binding>
105 </low>
106 <high>
107 <repeatable>true</repeatable>
108 <binding>
109 <command>nasal</command>
110 <script>
111 var yoke = getprop("/devices/status/yoke/offset");
112 var offset = getprop("/sim/current-view/goal-heading-offset-deg");
113 setprop("/sim/current-view/goal-heading-offset-deg", offset - yoke);
114 </script>
115 </binding>
116 </high>
117 </axis>
118 <axis>
119 <number>
120 <unix>6</unix>
121 </number>
122 <name>Coolie hat up/down</name>
123 <desc>View Elevation</desc>
124 <low>
125 <repeatable>true</repeatable>
126 <binding>
127 <command>nasal</command>
128 <script>
129 var yoke = getprop("/devices/status/yoke/offset");
130 var offset = getprop("/sim/current-view/goal-pitch-offset-deg");
131 setprop("/sim/current-view/goal-pitch-offset-deg", offset + yoke);
132 </script>
133 </binding>
134 </low>
135 <high>
136 <repeatable>true</repeatable>
137 <binding>
138 <command>nasal</command>
139 <script>
140 var yoke = getprop("/devices/status/yoke/offset");
141 var offset = getprop("/sim/current-view/goal-pitch-offset-deg");
142 setprop("/sim/current-view/goal-pitch-offset-deg", offset - yoke);
143 </script>
144 </binding>
145 </high>
146 </axis>
147 <axis>
148 <number>
149 <windows>7</windows>
150 </number>
151 <name>Coolie hat up/down</name>
152 <desc>View Elevation</desc>
153 <low>
154 <repeatable>true</repeatable>
155 <binding>
156 <command>nasal</command>
157 <script>
158 var yoke = getprop("/devices/status/yoke/offset");
159 var offset = getprop("/sim/current-view/goal-pitch-offset-deg");
160 setprop("/sim/current-view/goal-pitch-offset-deg", offset - yoke);
161 </script>
162 </binding>
163 </low>
164 <high>
165 <repeatable>true</repeatable>
166 <binding>
167 <command>nasal</command>
168 <script>
169 var yoke = getprop("/devices/status/yoke/offset");
170 var offset = getprop("/sim/current-view/goal-pitch-offset-deg");
171 setprop("/sim/current-view/goal-pitch-offset-deg", offset + yoke);
172 </script>
173 </binding>
174 </high>
175 </axis>
176
177 <!-- Buttons on the Yoke -->
178
179 <!-- Red Button on left stalk -->
180 <button n="0">
181 <name>Red button</name>
182 <desc>Push To Talk (FGCom)</desc>
183 <binding>
184 <command>nasal</command>
185 <script>controls.ptt(1)</script>
186 </binding>
187 <mod-up>
188 <binding>
189 <command>nasal</command>
190 <script>controls.ptt(0)</script>
191 </binding>
192 </mod-up>
193 </button>
194
195 <!-- Black button on right stalk -->
196 <button n="1">
197 <name>Black button</name>
198 <desc>Reset view</desc>
199 <repeatable>false</repeatable>
200 <binding>
201 <command>nasal</command>
202 <script>
203 setprop("/sim/current-view/view-number", 0);
204 setprop("/sim/current-view/goal-pitch-offset-deg", getprop("/sim/view[0]/config/pitch-offset-deg"));
205 setprop("/sim/current-view/goal-heading-offset-deg", 0.0);
206 #setprop("/sim/current-view/field-of-view", getprop("/sim/view/config/default-field-of-view-deg"));
207 </script>
208 </binding>
209 </button>
210
211 <!-- Left hand four-way switch -->
212 <button n="2">
213 <name>Left rocker switch up</name>
214 <desc>View Decrease</desc>
215 <repeatable>true</repeatable>
216 <binding>
217 <command>nasal</command>
218 <script>view.decrease(0.75)</script>
219 </binding>
220 </button>
221
222 <button n="3">
223 <name>Left rocker switch down</name>
224 <desc>View Increase</desc>
225 <repeatable>true</repeatable>
226 <binding>
227 <command>nasal</command>
228 <script>view.increase(0.75)</script>
229 </binding>
230 </button>
231
232 <!-- Right hand vertical two-way switch -->
233 <button n="4">
234 <name>Right vertical rocker switch up</name>
235 <desc>Elevator trim up</desc>
236 <repeatable>true</repeatable>
237 <binding>
238 <command>nasal</command>
239 <script>controls.elevatorTrim(1)</script>
240 </binding>
241 </button>
242 <button n="5">
243 <name>Right vertical rocker switch down</name>
244 <desc>Elevator trim down</desc>
245 <repeatable>true</repeatable>
246 <binding>
247 <command>nasal</command>
248 <script>controls.elevatorTrim(-1)</script>
249 </binding>
250 </button>
251
252 <!-- Right hand horizontal two-way switch -->
253 <button n="6">
254 <name>Right horizontal rocker switch right</name>
255 <desc>Rudder trim right</desc>
256 <repeatable>true</repeatable>
257 <binding>
258 <command>nasal</command>
259 <script>controls.rudderTrim(-1)</script>
260 </binding>
261 </button>
262 <button n="7">
263 <name>Right horizontal rocker switch left</name>
264 <desc>Rudder trim left</desc>
265 <repeatable>true</repeatable>
266 <binding>
267 <command>nasal</command>
268 <script>controls.rudderTrim(1)</script>
269 </binding>
270 </button>
271
272 <!-- Left four-way switch - horizontal -->
273 <button n="11">
274 <name>Right rocker switch left</name>
275 <desc>View Cycle Backwards</desc>
276 <repeatable>false</repeatable>
277 <binding>
278 <command>nasal</command>
279 <script>view.stepView(-1)</script>
280 </binding>
281 </button>
282
283 <button n="12">
284 <name>Right rocker switch right</name>
285 <desc>View Cycle Forwards</desc>
286 <repeatable>false</repeatable>
287 <binding>
288 <command>nasal</command>
289 <script>view.stepView(1)</script>
290 </binding>
291 </button>
292
293 <!-- Buttons on the throttle Quadrant -->
294 <button n="13"> <!-- Labled as T1 -->
295 <name>T1</name>
296 <desc>Flaps up</desc>
297 <repeatable>false</repeatable>
298 <binding>
299 <command>nasal</command>
300 <script>controls.flapsDown(-1)</script>
301 </binding>
302 <mod-up>
303 <binding>
304 <command>nasal</command>
305 <script>controls.flapsDown(0)</script>
306 </binding>
307 </mod-up>
308 </button>
309 <button n="14"> <!-- Labled as T2 -->
310 <name>T2</name>
311 <desc>Flaps down</desc>
312 <repeatable>false</repeatable>
313 <binding>
314 <command>nasal</command>
315 <script>controls.flapsDown(1)</script>
316 </binding>
317 <mod-up>
318 <binding>
319 <command>nasal</command>
320 <script>controls.flapsDown(0)</script>
321 </binding>
322 </mod-up>
323 </button>
324 <button n="15"> <!-- Labled as T3 -->
325 <name>T3</name>
326 <desc>Gear up</desc>
327 <repeatable>false</repeatable>
328 <binding>
329 <command>nasal</command>
330 <script>controls.gearDown(-1)</script>
331 </binding>
332 <mod-up>
333 <binding>
334 <command>nasal</command>
335 <script>controls.gearDown(0)</script>
336 </binding>
337 </mod-up>
338 </button>
339 <button n="16"> <!-- Labled as T4 -->
340 <name>T4</name>
341 <desc>Gear down</desc>
342 <repeatable>false</repeatable>
343 <binding>
344 <command>nasal</command>
345 <script>controls.gearDown(1)</script>
346 </binding>
347 <mod-up>
348 <binding>
349 <command>nasal</command>
350 <script>controls.gearDown(0)</script>
351 </binding>
352 </mod-up>
353 </button>
354 <button n="17"> <!-- Labled as T5 -->
355 <name>T5</name>
356 <desc>Retract Spoilers</desc>
357 <repeatable>false</repeatable>
358 <binding>
359 <command>nasal</command>
360 <script>controls.stepSpoilers(-1)</script>
361 </binding>
362 <mod-up>
363 <binding>
364 <command>nasal</command>
365 <script>controls.stepSpoilers(0)</script>
366 </binding>
367 </mod-up>
368 </button>
369
370 <button n="18"> <!-- Labled as T6 -->
371 <name>T6</name>
372 <desc>Deploy Spoilers</desc>
373 <repeatable>false</repeatable>
374 <binding>
375 <command>nasal</command>
376 <script>controls.stepSpoilers(1)</script>
377 </binding>
378 <mod-up>
379 <binding>
380 <command>nasal</command>
381 <script>controls.stepSpoilers(0)</script>
382 </binding>
383 </mod-up>
384 </button>
385
386 <button n="19"> <!-- Power < 0 -->
387 <name>Throttle pushed below 0</name>
388 <desc>Thrust reverser/beta</desc>
389 <repeatable>false</repeatable>
390 <binding>
391 <command>property-assign</command>
392 <property>/controls/engines/engine[0]/reverser</property>
393 <value>true</value>
394 </binding>
395 <binding>
396 <command>property-assign</command>
397 <property>/controls/engines/engine[1]/reverser</property>
398 <value>true</value>
399 </binding>
400 <binding>
401 <command>property-assign</command>
402 <property>/controls/engines/engine[2]/reverser</property>
403 <value>true</value>
404 </binding>
405 <binding>
406 <command>property-assign</command>
407 <property>/controls/engines/engine[3]/reverser</property>
408 <value>true</value>
409 </binding>
410 <binding>
411 <command>property-assign</command>
412 <property>/engines/engine[0]/reverse-thrust</property>
413 <value>1</value>
414 </binding>
415 <binding>
416 <command>property-assign</command>
417 <property>/engines/engine[1]/reverse-thrust</property>
418 <value>1</value>
419 </binding>
420 <binding>
421 <command>property-assign</command>
422 <property>/engines/engine[2]/reverse-thrust</property>
423 <value>1</value>
424 </binding>
425 <binding>
426 <command>property-assign</command>
427 <property>/engines/engine[3]/reverse-thrust</property>
428 <value>1</value>
429 </binding>
430 <mod-up>
431 <binding>
432 <command>property-assign</command>
433 <property>/controls/engines/engine[0]/reverser</property>
434 <value>false</value>
435 </binding>
436 <binding>
437 <command>property-assign</command>
438 <property>/controls/engines/engine[1]/reverser</property>
439 <value>false</value>
440 </binding>
441 <binding>
442 <command>property-assign</command>
443 <property>/controls/engines/engine[2]/reverser</property>
444 <value>false</value>
445 </binding>
446 <binding>
447 <command>property-assign</command>
448 <property>/controls/engines/engine[3]/reverser</property>
449 <value>false</value>
450 </binding>
451 <binding>
452 <command>property-assign</command>
453 <property>/engines/engine[0]/reverse-thrust</property>
454 <value>0</value>
455 </binding>
456 <binding>
457 <command>property-assign</command>
458 <property>/engines/engine[1]/reverse-thrust</property>
459 <value>0</value>
460 </binding>
461 <binding>
462 <command>property-assign</command>
463 <property>/engines/engine[2]/reverse-thrust</property>
464 <value>0</value>
465 </binding>
466 <binding>
467 <command>property-assign</command>
468 <property>/engines/engine[3]/reverse-thrust</property>
469 <value>0</value>
470 </binding>
471 </mod-up>
472 </button>
473
474 <button n="20"> <!-- Propeller < 0 -->
475 <name>Propeller pushed below 0</name>
476 <desc>Feather Prop</desc>
477 <repeatable>false</repeatable>
478 <binding>
479 <command>property-assign</command>
480 <property>/controls/engines/engine[0]/propeller-feather</property>
481 <value>true</value>
482 </binding>
483 <binding>
484 <command>property-assign</command>
485 <property>/controls/engines/engine[1]/propeller-feather</property>
486 <value>true</value>
487 </binding>
488 <binding>
489 <command>property-assign</command>
490 <property>/controls/engines/engine[2]/propeller-feather</property>
491 <value>true</value>
492 </binding>
493 <binding>
494 <command>property-assign</command>
495 <property>/controls/engines/engine[3]/propeller-feather</property>
496 <value>true</value>
497 </binding>
498 <mod-up>
499 <binding>
500 <command>property-assign</command>
501 <property>/controls/engines/engine[0]/propeller-feather</property>
502 <value>false</value>
503 </binding>
504 <binding>
505 <command>property-assign</command>
506 <property>/controls/engines/engine[1]/propeller-feather</property>
507 <value>false</value>
508 </binding>
509 <binding>
510 <command>property-assign</command>
511 <property>/controls/engines/engine[2]/propeller-feather</property>
512 <value>false</value>
513 </binding>
514 <binding>
515 <command>property-assign</command>
516 <property>/controls/engines/engine[3]/propeller-feather</property>
517 <value>false</value>
518 </binding>
519 </mod-up>
520 </button>
521
522 <button n="21"> <!-- Mixture < 0 -->
523 <name>Mixture pushed below 0</name>
524 <desc>Engine cut-off</desc>
525 <repeatable>false</repeatable>
526 <binding>
527 <command>property-assign</command>
528 <property>/controls/engines/engine[0]/cutoff</property>
529 <value>true</value>
530 </binding>
531 <binding>
532 <command>property-assign</command>
533 <property>/controls/engines/engine[1]/cutoff</property>
534 <value>true</value>
535 </binding>
536 <binding>
537 <command>property-assign</command>
538 <property>/controls/engines/engine[2]/cutoff</property>
539 <value>true</value>
540 </binding>
541 <binding>
542 <command>property-assign</command>
543 <property>/controls/engines/engine[3]/cutoff</property>
544 <value>true</value>
545 </binding>
546 <mod-up>
547 <binding>
548 <command>property-assign</command>
549 <property>/controls/engines/engine[0]/cutoff</property>
550 <value>false</value>
551 </binding>
552 <binding>
553 <command>property-assign</command>
554 <property>/controls/engines/engine[1]/cutoff</property>
555 <value>false</value>
556 </binding>
557 <binding>
558 <command>property-assign</command>
559 <property>/controls/engines/engine[2]/cutoff</property>
560 <value>false</value>
561 </binding>
562 <binding>
563 <command>property-assign</command>
564 <property>/controls/engines/engine[3]/cutoff</property>
565 <value>false</value>
566 </binding>
567 </mod-up>
568 </button>
569
570 <button n="22">
571 <name>Yoke mode switch left</name>
572 <desc>Coolie hat sensitivity low</desc>
573 <repeatable type="bool">false</repeatable>
574 <binding>
575 <command>property-assign</command>
576 <property>/devices/status/yoke/offset</property>
577 <value>1</value>
578 </binding>
579 </button>
580 <button n="23">
581 <name>Yoke mode switch middle</name>
582 <desc>Coolie hat sensitivity medium</desc>
583 <repeatable type="bool">false</repeatable>
584 <binding>
585 <command>property-assign</command>
586 <property>/devices/status/yoke/offset</property>
587 <value>5</value>
588 </binding>
589 </button>
590 <button n="24">
591 <name>Yoke mode switch right</name>
592 <desc>Coolie hat sensitivity high</desc>
593 <repeatable type="bool">false</repeatable>
594 <binding>
595 <command>property-assign</command>
596 <property>/devices/status/yoke/offset</property>
597 <value>10</value>
598 </binding>
599 </button>
600
601 </PropertyList>