Debian Codegraph @

Input/Joysticks/Microsoft/xbox-360-controller.xml

raw symbols SCIP
1 <?xml version="1.0" ?>
2
3 <!--
4 **************X360 Controller for Windows layout****************
5
6 Axes 0,1 (Left-stick): View direction and elevation
7 Axis 2 (Trigger buttons LT/RT): Rudder
8 Axis 3 (Right-stick U/D): Elevator
9 Axis 4 (Right-stick L/R): Ailerons
10 Axis 6 (D-pad L/R): Aileron trim
11 Axis 7 (D-pad U/D): Elevator trim
12
13 Button 0 (A): Flaps down
14 Button 1 (B): Brakes
15 Button 2 (X): Flaps up
16 Button 3 (Y): Park brake toggle
17 Button 4 (Left shoulder): Throttle decrease
18 Button 5 (Right shoulder): Throttle increase
19 Button 6 (Back): Landing gear toggle
20 Button 7 (Start): Pause
21 Button 8 (Press left-stick): Reset view
22
23 ****************************************************************
24 -->
25
26 <PropertyList>
27
28 <name>Controller (XBOX 360 For Windows)</name>
29
30 <axis n="0">
31 <desc>View Direction</desc>
32 <low>
33 <repeatable>true</repeatable>
34 <binding>
35 <command>property-adjust</command>
36 <property>/sim/current-view/goal-heading-offset-deg</property>
37 <step type="double">2</step>
38 </binding>
39 </low>
40 <high>
41 <repeatable>true</repeatable>
42 <binding>
43 <command>property-adjust</command>
44 <property>/sim/current-view/goal-heading-offset-deg</property>
45 <step type="double">-2</step>
46 </binding>
47 </high>
48 </axis>
49
50 <axis n="1">
51 <desc>View Elevation</desc>
52 <low>
53 <repeatable>true</repeatable>
54 <binding>
55 <command>property-adjust</command>
56 <property>/sim/current-view/goal-pitch-offset-deg</property>
57 <step type="double">-1</step>
58 </binding>
59 </low>
60 <high>
61 <repeatable>true</repeatable>
62 <binding>
63 <command>property-adjust</command>
64 <property>/sim/current-view/goal-pitch-offset-deg</property>
65 <step type="double">1</step>
66 </binding>
67 </high>
68 </axis>
69
70 <axis n="2">
71 <desc>Rudder</desc>
72 <binding>
73 <command>property-scale</command>
74 <property>/controls/flight/rudder</property>
75 <factor type="double">-1.0</factor>
76 </binding>
77 </axis>
78
79 <axis n="3">
80 <desc>Elevator</desc>
81 <binding>
82 <command>property-scale</command>
83 <property>/controls/flight/elevator</property>
84 <factor type="double">-1.0</factor>
85 <squared type="bool">true</squared>
86 </binding>
87 </axis>
88
89 <axis n="4">
90 <desc>Aileron</desc>
91 <binding>
92 <command>property-scale</command>
93 <property>/controls/flight/aileron</property>
94 <squared type="bool">true</squared>
95 </binding>
96 </axis>
97
98 <axis n="6">
99 <desc>Aileron trim</desc>
100 <low>
101 <repeatable>true</repeatable>
102 <binding>
103 <command>property-adjust</command>
104 <property>/controls/flight/aileron-trim</property>
105 <step type="double">-0.002</step>
106 </binding>
107 </low>
108 <high>
109 <repeatable>true</repeatable>
110 <binding>
111 <command>property-adjust</command>
112 <property>/controls/flight/aileron-trim</property>
113 <step type="double">0.002</step>
114 </binding>
115 </high>
116 </axis>
117
118 <axis n="7">
119 <desc>Elevator trim</desc>
120 <low>
121 <repeatable>true</repeatable>
122 <binding>
123 <command>property-adjust</command>
124 <property>/controls/flight/elevator-trim</property>
125 <step type="double">-1.5</step>
126 </binding>
127 </low>
128 <high>
129 <repeatable>true</repeatable>
130 <binding>
131 <command>property-adjust</command>
132 <property>/controls/flight/elevator-trim</property>
133 <step type="double">1.5</step>
134 </binding>
135 </high>
136 </axis>
137
138 <button n="0">
139 <desc>Flaps Down</desc>
140 <repeatable>false</repeatable>
141 <binding>
142 <command>nasal</command>
143 <script>controls.flapsDown(1)</script>
144 </binding>
145 <mod-up>
146 <binding>
147 <command>nasal</command>
148 <script>controls.flapsDown(0)</script>
149 </binding>
150 </mod-up>
151 </button>
152
153 <button n="1">
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="2">
168 <desc>Flaps Up</desc>
169 <repeatable>false</repeatable>
170 <binding>
171 <command>nasal</command>
172 <script>controls.flapsDown(-1)</script>
173 </binding>
174 <mod-up>
175 <binding>
176 <command>nasal</command>
177 <script>controls.flapsDown(0)</script>
178 </binding>
179 </mod-up>
180 </button>
181
182 <button n="3">
183 <desc>Parking brake</desc>
184 <repeatable type="bool">false</repeatable>
185 <binding>
186 <command>nasal</command>
187 <script>
188 var pb = getprop("/controls/gear/brake-parking");
189 pb = !pb;
190 setprop ("/controls/gear/brake-parking",pb)
191 </script>
192 </binding>
193 </button>
194
195 <button n="4">
196 <desc>Throttle decrease</desc>
197 <repeatable type="bool">true</repeatable>
198 <binding>
199 <command>property-adjust</command>
200 <property>/controls/engines/engine[0]/throttle</property>
201 <step type="double">-0.01</step>
202 </binding>
203 <binding>
204 <command>property-adjust</command>
205 <property>/controls/engines/engine[1]/throttle</property>
206 <step type="double">-0.01</step>
207 </binding>
208 <binding>
209 <command>property-adjust</command>
210 <property>/controls/engines/engine[2]/throttle</property>
211 <step type="double">-0.01</step>
212 </binding>
213 <binding>
214 <command>property-adjust</command>
215 <property>/controls/engines/engine[3]/throttle</property>
216 <step type="double">-0.01</step>
217 </binding>
218 <binding>
219 <command>property-adjust</command>
220 <property>/controls/engines/engine[4]/throttle</property>
221 <step type="double">-0.01</step>
222 </binding>
223 <binding>
224 <command>property-adjust</command>
225 <property>/controls/engines/engine[5]/throttle</property>
226 <step type="double">-0.01</step>
227 </binding>
228 <binding>
229 <command>property-adjust</command>
230 <property>/controls/engines/engine[6]/throttle</property>
231 <step type="double">-0.01</step>
232 </binding>
233 <binding>
234 <command>property-adjust</command>
235 <property>/controls/engines/engine[7]/throttle</property>
236 <step type="double">-0.01</step>
237 </binding>
238 </button>
239
240 <button n="5">
241 <desc>Throttle increase</desc>
242 <repeatable type="bool">true</repeatable>
243 <binding>
244 <command>property-adjust</command>
245 <property>/controls/engines/engine[0]/throttle</property>
246 <step type="double">0.01</step>
247 </binding>
248 <binding>
249 <command>property-adjust</command>
250 <property>/controls/engines/engine[1]/throttle</property>
251 <step type="double">0.01</step>
252 </binding>
253 <binding>
254 <command>property-adjust</command>
255 <property>/controls/engines/engine[2]/throttle</property>
256 <step type="double">0.01</step>
257 </binding>
258 <binding>
259 <command>property-adjust</command>
260 <property>/controls/engines/engine[3]/throttle</property>
261 <step type="double">0.01</step>
262 </binding>
263 <binding>
264 <command>property-adjust</command>
265 <property>/controls/engines/engine[4]/throttle</property>
266 <step type="double">0.01</step>
267 </binding>
268 <binding>
269 <command>property-adjust</command>
270 <property>/controls/engines/engine[5]/throttle</property>
271 <step type="double">0.01</step>
272 </binding>
273 <binding>
274 <command>property-adjust</command>
275 <property>/controls/engines/engine[6]/throttle</property>
276 <step type="double">0.01</step>
277 </binding>
278 <binding>
279 <command>property-adjust</command>
280 <property>/controls/engines/engine[7]/throttle</property>
281 <step type="double">0.01</step>
282 </binding>
283 </button>
284
285 <button n="6">
286 <desc>Landing gear toggle</desc>
287 <repeatable type="bool">false</repeatable>
288 <binding>
289 <command>nasal</command>
290 <script>
291 controls.gearToggle()
292 </script>
293 </binding>
294 </button>
295
296 <button n="7">
297 <desc>Pause</desc>
298 <repeatable type="bool">false</repeatable>
299 <binding>
300 <command>nasal</command>
301 <script>
302 var p =getprop ("/sim/freeze/master");
303 p = !p;
304 setprop ("sim/freeze/master",p);
305 setprop ("sim/freeze/clock",p)
306 </script>
307 </binding>
308 </button>
309
310 <button n="8">
311 <desc>Center View</desc>
312 <repeatable type="bool">false</repeatable>
313 <binding>
314 <command>nasal</command>
315 <script>view.resetView()</script>
316 </binding>
317 </button>
318
319 </PropertyList>