Debian Codegraph @

Input/Joysticks/ThrustMaster/T16000M.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4 ************************************************************************
5 *
6 * Bindings or Thrustmaster T.16000M USB joystick (see joysticks.xml in fgfsbase dir)
7 *
8 *
9 * Axis 0: ailerons
10 * Axis 1: elevator
11 * Axis 2: rudder (twistable stick)
12 * Axis 3: throttle
13 * Axis 4: Horizontal Hat
14 * Axis 5: Vertical Hat
15 * Axis 6: view left/right
16 * Axis 7: view Up/down
17 *
18 * Button 0: (fire) all brakes
19 * Button 1: gear up/down
20 * Button 4: trim up
21 * Button 9: trim down
22 * Button 10: flaps up
23 * Button 15: flaps down
24 * Button 2: trim aileron left
25 * Button 3: trim aileron right
26 * Button 5: Mixture up
27 * Button 8: Mixture down
28 * Button 6: Propeller up
29 * Button 7: Propeller down
30 * Button 12: Battery On/Off
31 * Button 13: Fuel selector
32 * Button 11: Magnetos
33 * Button 14: starter
34 ************************************************************************
35 -->
36
37
38 <PropertyList>
39 <name type="string">Thrustmaster T.16000M</name>
40 <name type="string">T.16000M</name>
41
42 <axis>
43 <number>
44 <unix>0</unix>
45 <windows>0</windows>
46 <mac>0</mac>
47 </number>
48 <desc>Aileron</desc>
49 <dead-band type="double">0.02</dead-band>
50 <binding>
51 <command>property-scale</command>
52 <property>/controls/flight/aileron</property>
53 <offset type="double">+0.0</offset>
54 <factor type="double">+1.0</factor>
55 </binding>
56 </axis>
57
58 <axis>
59 <number>
60 <unix>1</unix>
61 <windows>1</windows>
62 <mac>1</mac>
63 </number>
64 <desc>Elevator</desc>
65 <dead-band type="double">0.02</dead-band>
66 <binding>
67 <command>property-scale</command>
68 <property>/controls/flight/elevator</property>
69 <offset type="double">+0.0</offset>
70 <factor type="double">-1.0</factor>
71 </binding>
72 </axis>
73
74 <axis>
75 <number>
76 <unix>2</unix>
77 <windows>3</windows>
78 <mac>2</mac>
79 </number>
80 <desc>Rudder</desc>
81 <dead-band type="double">0.02</dead-band>
82 <binding>
83 <command>property-scale</command>
84 <property>/controls/flight/rudder</property>
85 <offset type="double">0.0</offset>
86 <factor type="double">1.0</factor>
87 </binding>
88 </axis>
89
90 <axis>
91 <desc>Throttle</desc>
92 <number>
93 <unix>3</unix>
94 <mac>3</mac>
95 <windows>2</windows>
96 </number>
97 <binding>
98 <command>nasal</command>
99 <script>controls.throttleAxis()</script>
100 </binding>
101 </axis>
102
103 <axis>
104 <desc>View Direction</desc>
105 <number>
106 <unix>4</unix>
107 <windows>6</windows>
108 </number>
109 <low>
110 <repeatable>true</repeatable>
111 <binding>
112 <command>property-adjust</command>
113 <property>/sim/current-view/goal-heading-offset-deg</property>
114 <step type="double">2.0</step>
115 </binding>
116 </low>
117 <high>
118 <repeatable>true</repeatable>
119 <binding>
120 <command>property-adjust</command>
121 <property>/sim/current-view/goal-heading-offset-deg</property>
122 <step type="double">-2.0</step>
123 </binding>
124 </high>
125 </axis>
126
127
128 <axis>
129 <desc>View Elevation</desc>
130 <number>
131 <unix>5</unix>
132 <windows>7</windows>
133 </number>
134 <low>
135 <repeatable>true</repeatable>
136 <binding>
137 <command>property-adjust</command>
138 <property>/sim/current-view/goal-pitch-offset-deg</property>
139 <step type="double">2.0</step>
140 </binding>
141 </low>
142 <high>
143 <repeatable>true</repeatable>
144 <binding>
145 <command>property-adjust</command>
146 <property>/sim/current-view/goal-pitch-offset-deg</property>
147 <step type="double">-2.0</step>
148 </binding>
149 </high>
150 </axis>
151
152
153 <button n="0">
154 <desc>Brakes</desc>
155 <binding>
156 <command>nasal</command>
157 <script>controls.applyBrakes(1)</script>
158 </binding>
159 <mod-up>
160 <binding>
161 <command>nasal</command>
162 <script>controls.applyBrakes(0)</script>
163 </binding>
164 </mod-up>
165 </button>
166
167 <button n="1">
168 <desc>Trigger</desc>
169 <binding>
170 <command>property-assign</command>
171 <property>ai/submodels/trigger</property>
172 <value type="bool">1</value>
173 </binding>
174 <mod-up>
175 <binding>
176 <command>property-assign</command>
177 <property>ai/submodels/trigger</property>
178 <value type="bool">0</value>
179 </binding>
180 </mod-up>
181 </button>
182
183
184 <button n="4">
185 <desc>Elevator trim up</desc>
186 <repeatable type="bool">true</repeatable>
187 <binding>
188 <command>nasal</command>
189 <script>controls.elevatorTrim(-1)</script>
190 </binding>
191 </button>
192
193 <button n="9">
194 <desc>Elevator trim down</desc>
195 <repeatable type="bool">true</repeatable>
196 <binding>
197 <command>nasal</command>
198 <script>controls.elevatorTrim(1)</script>
199 </binding>
200 </button>
201
202 <button n="15">
203 <desc>Flaps up</desc>
204 <repeatable>false</repeatable>
205 <binding>
206 <command>nasal</command>
207 <script>controls.flapsDown(1)</script>
208 </binding>
209 <mod-up>
210 <binding>
211 <command>nasal</command>
212 <script>controls.flapsDown(0)</script>
213 </binding>
214 </mod-up>
215 </button>
216
217 <button n="10">
218 <desc>Flaps down</desc>
219 <repeatable>false</repeatable>
220 <binding>
221 <command>nasal</command>
222 <script>controls.flapsDown(-1)</script>
223 </binding>
224 <mod-up>
225 <binding>
226 <command>nasal</command>
227 <script>controls.flapsDown(0)</script>
228 </binding>
229 </mod-up>
230 </button>
231
232 <!--
233 <button n="1">
234 <desc>Landing Gear Toggle</desc>
235 <repeatable type="bool">false</repeatable>
236 <binding>
237 <command>nasal</command>
238 <script>controls.gearToggle()</script>
239 </binding>
240 </button>
241 -->
242
243 <button n="2">
244 <desc>Cycle view back</desc>
245 <repeatable>false</repeatable>
246 <binding>
247 <command>nasal</command>
248 <script>view.stepView(-1)</script>
249 </binding>
250 </button>
251
252 <button n="3">
253 <desc>Cycle view forward</desc>
254 <repeatable>false</repeatable>
255 <binding>
256 <command>nasal</command>
257 <script>view.stepView(1)</script>
258 </binding>
259 </button>
260
261 <button n="5">
262 <desc>mixture up</desc>
263 <repeatable type="bool">true</repeatable>
264 <binding>
265 <command>nasal</command>
266 <script>controls.adjMixture(0.25)</script>
267 </binding>
268 </button>
269
270 <button n="8">
271 <desc>mixture up</desc>
272 <repeatable type="bool">true</repeatable>
273 <binding>
274 <command>nasal</command>
275 <script>controls.adjMixture(-0.25)</script>
276 </binding>
277 </button>
278
279 <button n="6">
280 <desc>propeller up</desc>
281 <repeatable type="bool">true</repeatable>
282 <binding>
283 <command>nasal</command>
284 <script>controls.adjPropeller(0.25)</script>
285 </binding>
286 </button>
287
288 <button n="7">
289 <desc>propeller down</desc>
290 <repeatable type="bool">true</repeatable>
291 <binding>
292 <command>nasal</command>
293 <script>controls.adjPropeller(-0.25)</script>
294 </binding>
295 </button>
296
297 <button n="12">
298 <desc>batterie switch</desc>
299 <repeatable type="bool">false</repeatable>
300 <binding>
301 <command>nasal</command>
302 <script>
303 <![CDATA[
304 j = getprop("/controls/electric/battery-switch");
305 if (j == 0)
306 {
307 setprop("/controls/electric/battery-switch", 1);
308 } else
309 { setprop("/controls/electric/battery-switch", 0);
310 }
311 ]]>
312 </script>
313 </binding>
314 </button>
315
316 <button n="13">
317 <desc>fuel selector</desc>
318 <repeatable type="bool">false</repeatable>
319 <binding>
320 <command>nasal</command>
321 <script>
322 <![CDATA[
323 k = getprop("/controls/fuel/tank/fuel_selector");
324 if (k == 0)
325 {
326 setprop("/controls/fuel/tank/fuel_selector", 1);
327 setprop("/controls/engines/engine/fuel-pump", 1);
328 } else
329 {
330 setprop("/controls/fuel/tank/fuel_selector", 0);
331 setprop("/controls/engines/engine/fuel-pump", 0);
332 }
333 ]]>
334 </script>
335 </binding>
336 </button>
337
338 <button n="11">
339 <desc>selecteur megneto</desc>
340 <repeatable type="bool">false</repeatable>
341 <binding>
342 <command>nasal</command>
343 <script>
344 <![CDATA[
345 l = getprop("/controls/engines/engine/magnetos");
346 if (l == 0)
347 {
348 props.setAll("/controls/engines/engine", "magnetos", 1);
349 }
350 elsif ( l == 1 )
351 {
352 props.setAll("/controls/engines/engine", "magnetos", 2);
353 }
354 elsif ( l == 2 )
355 {
356 props.setAll("/controls/engines/engine", "magnetos", 3);
357 }
358 elsif ( l == 3 )
359 {
360 props.setAll("/controls/engines/engine", "magnetos", 0);
361 }
362 ]]>
363 </script>
364 </binding>
365 </button>
366
367 <button n="14">
368 <desc> starter </desc>
369 <repeatable>false</repeatable>
370 <binding>
371 <command>nasal</command>
372 <script>
373 setprop("/controls/engines/engine/starter", 1);
374 setprop("/controls/engines/engine[1]/starter", 1);
375 setprop("/controls/engines/engine[2]/starter", 1);
376 setprop("/controls/engines/engine[3]/starter", 1);
377 setprop("/controls/engines/engine[4]/starter", 1);
378 </script>
379 </binding>
380 <mod-up>
381 <binding>
382 <command>nasal</command>
383 <script>setprop("/controls/engines/engine/starter", 0);
384 setprop("/controls/engines/engine[1]/starter", 0);
385 setprop("/controls/engines/engine[2]/starter", 0);
386 setprop("/controls/engines/engine[3]/starter", 0);
387 setprop("/controls/engines/engine[4]/starter", 0);
388 </script>
389 </binding>
390 </mod-up>
391 </button>
392
393
394
395
396 </PropertyList>
397
398
399 <!-- end of TGF2PROUSB.xml -->