Debian Codegraph @

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

raw symbols SCIP
1 <?xml version="1.0"?>
2 <!-- Saitek Pro Flight Yoke
3
4 Copyright (C) 2008 Oliver Schroeder (fgfs(at)o-schroeder.de)
5 This file is released under the GPL license.
6 -->
7 <PropertyList>
8 <name>Saitek Saitek Pro Flight Yoke</name>
9 <name>Saitek Pro Flight Yoke</name>
10 <name>Flight Yoke System</name>
11
12 <axis n="0">
13 <desc>Aileron</desc>
14 <binding>
15 <command>property-scale</command>
16 <property>/controls/flight/aileron</property>
17 <squared type="bool">true</squared>
18 </binding>
19 </axis>
20 <axis n="1">
21 <desc>Elevator</desc>
22 <binding>
23 <command>property-scale</command>
24 <property>/controls/flight/elevator</property>
25 <factor type="double">-1.0</factor>
26 <squared type="bool">true</squared>
27 </binding>
28 </axis>
29 <!-- Throttle Quadrant -->
30 <axis n="2">
31 <desc>Throttle</desc>
32 <binding>
33 <command>nasal</command>
34 <script>controls.throttleAxis()</script>
35 </binding>
36 </axis>
37 <axis>
38 <number>
39 <unix>3</unix>
40 <windows>4</windows>
41 </number>
42 <desc>Prop Pitch</desc>
43 <binding>
44 <command>nasal</command>
45 <script>controls.propellerAxis()</script>
46 </binding>
47 </axis>
48 <axis>
49 <number>
50 <unix>4</unix>
51 <windows>3</windows>
52 </number>
53 <desc>Mixture</desc>
54 <binding>
55 <command>nasal</command>
56 <script>controls.mixtureAxis()</script>
57 </binding>
58 </axis>
59 <!-- Coolie Hat -->
60 <axis>
61 <number>
62 <unix>5</unix>
63 <windows>6</windows>
64 </number>
65 <desc>View Direction</desc>
66 <low>
67 <repeatable>true</repeatable>
68 <binding>
69 <command>property-adjust</command>
70 <property>/sim/current-view/goal-heading-offset-deg</property>
71 <step type="double">1.0</step>
72 </binding>
73 </low>
74 <high>
75 <repeatable>true</repeatable>
76 <binding>
77 <command>property-adjust</command>
78 <property>/sim/current-view/goal-heading-offset-deg</property>
79 <step type="double">-1.0</step>
80 </binding>
81 </high>
82 </axis>
83 <axis>
84 <number>
85 <unix>6</unix>
86 </number>
87 <desc>View Elevation</desc>
88 <low>
89 <repeatable>true</repeatable>
90 <binding>
91 <command>property-adjust</command>
92 <property>/sim/current-view/goal-pitch-offset-deg</property>
93 <step type="double">1.0</step>
94 </binding>
95 </low>
96 <high>
97 <repeatable>true</repeatable>
98 <binding>
99 <command>property-adjust</command>
100 <property>/sim/current-view/goal-pitch-offset-deg</property>
101 <step type="double">-1.0</step>
102 </binding>
103 </high>
104 </axis>
105 <axis>
106 <number>
107 <windows>7</windows>
108 </number>
109 <desc>View Elevation</desc>
110 <low>
111 <repeatable>true</repeatable>
112 <binding>
113 <command>property-adjust</command>
114 <property>/sim/current-view/goal-pitch-offset-deg</property>
115 <step type="double">-1.0</step>
116 </binding>
117 </low>
118 <high>
119 <repeatable>true</repeatable>
120 <binding>
121 <command>property-adjust</command>
122 <property>/sim/current-view/goal-pitch-offset-deg</property>
123 <step type="double">1.0</step>
124 </binding>
125 </high>
126 </axis>
127 <!-- Buttons on the Yoke -->
128 <button n="0">
129 <desc>Cycle View</desc>
130 <repeatable>false</repeatable>
131 <binding>
132 <command>nasal</command>
133 <script>view.stepView(1)</script>
134 </binding>
135 </button>
136 <button n="1"> <!-- Labled as D -->
137 <desc>Toggle parking break</desc>
138 <binding>
139 <command>property-toggle</command>
140 <property>/controls/gear/brake-parking</property>
141 </binding>
142 </button>
143 <button n="2"> <!-- Labled as A1 -->
144 <desc>Elevator trim down</desc>
145 <repeatable>true</repeatable>
146 <binding>
147 <command>nasal</command>
148 <script>controls.elevatorTrim(0.75)</script>
149 </binding>
150 </button>
151 <button n="3"> <!-- Labled as A2 -->
152 <desc>Elevator trim up</desc>
153 <repeatable>true</repeatable>
154 <binding>
155 <command>nasal</command>
156 <script>controls.elevatorTrim(-0.75)</script>
157 </binding>
158 </button>
159 <button n="4"> <!-- Labled as B1 -->
160 <desc>Zoom In</desc>
161 <repeatable>true</repeatable>
162 <binding>
163 <command>property-adjust</command>
164 <property>/sim/current-view/field-of-view</property>
165 <step type="double">-0.5</step>
166 </binding>
167 </button>
168 <button n="5"> <!-- LAbled as B2 -->
169 <desc>Zoom Out</desc>
170 <repeatable>true</repeatable>
171 <binding>
172 <command>property-adjust</command>
173 <property>/sim/current-view/field-of-view</property>
174 <step type="double">+0.5</step>
175 </binding>
176 </button>
177 <button n="6"> <!-- Labled as C1 -->
178 <desc>Aileron trim left</desc>
179 <repeatable>true</repeatable>
180 <binding>
181 <command>nasal</command>
182 <script>controls.aileronTrim(-0.75)</script>
183 </binding>
184 </button>
185 <button n="7"> <!-- Labled as C2 -->
186 <desc>Aileron trim right</desc>
187 <repeatable>true</repeatable>
188 <binding>
189 <command>nasal</command>
190 <script>controls.aileronTrim(0.75)</script>
191 </binding>
192 </button>
193
194 <!-- Buttons on the throttle Quadrant -->
195 <button n="14"> <!-- Labled as T1 -->
196 <desc>Flaps up</desc>
197 <repeatable>false</repeatable>
198 <binding>
199 <command>nasal</command>
200 <script>controls.flapsDown(-1)</script>
201 </binding>
202 <mod-up>
203 <binding>
204 <command>nasal</command>
205 <script>controls.flapsDown(0)</script>
206 </binding>
207 </mod-up>
208 </button>
209 <button n="15"> <!-- Labled as T2 -->
210 <desc>Flaps down</desc>
211 <repeatable>false</repeatable>
212 <binding>
213 <command>nasal</command>
214 <script>controls.flapsDown(1)</script>
215 </binding>
216 <mod-up>
217 <binding>
218 <command>nasal</command>
219 <script>controls.flapsDown(0)</script>
220 </binding>
221 </mod-up>
222 </button>
223 <button n="16"> <!-- Labled as T3 -->
224 <desc>Gear up</desc>
225 <repeatable>false</repeatable>
226 <binding>
227 <command>nasal</command>
228 <script>controls.gearDown(-1)</script>
229 </binding>
230 <mod-up>
231 <binding>
232 <command>nasal</command>
233 <script>controls.gearDown(0)</script>
234 </binding>
235 </mod-up>
236 </button>
237 <button n="17"> <!-- Labled as T4 -->
238 <desc>Gear down</desc>
239 <repeatable>false</repeatable>
240 <binding>
241 <command>nasal</command>
242 <script>controls.gearDown(1)</script>
243 </binding>
244 <mod-up>
245 <binding>
246 <command>nasal</command>
247 <script>controls.gearDown(0)</script>
248 </binding>
249 </mod-up>
250 </button>
251 <button n="18"> <!-- Labled as T5 -->
252 <desc>Retract Spoilers</desc>
253 <repeatable>false</repeatable>
254 <binding>
255 <command>nasal</command>
256 <script>controls.stepSpoilers(-1)</script>
257 </binding>
258 <mod-up>
259 <binding>
260 <command>nasal</command>
261 <script>controls.stepSpoilers(0)</script>
262 </binding>
263 </mod-up>
264 </button>
265
266 <button n="19"> <!-- Labled as T6 -->
267 <desc>Deploy Spoilers</desc>
268 <repeatable>false</repeatable>
269 <binding>
270 <command>nasal</command>
271 <script>controls.stepSpoilers(1)</script>
272 </binding>
273 <mod-up>
274 <binding>
275 <command>nasal</command>
276 <script>controls.stepSpoilers(0)</script>
277 </binding>
278 </mod-up>
279 </button>
280 <button n="20">
281 <desc>thrust reverse</desc>
282 <repeatable type="bool">false</repeatable>
283 <binding>
284 <command>nasal</command>
285 <script>
286 props.setAll("/controls/engines/engine", "reverser", 1);
287 props.setAll("/controls/engines/engine", "throttle", 1);
288 gui.popupTip("Thrust reverse on!");
289 </script>
290 </binding>
291 <mod-up>
292 <binding>
293 <command>nasal</command>
294 <script>
295 props.setAll("/controls/engines/engine", "reverser", 0);
296 props.setAll("/controls/engines/engine", "throttle", 0);
297 gui.popupTip("Thrust reverse off!");
298 </script>
299 </binding>
300 </mod-up>
301 </button>
302 </PropertyList>