Debian Codegraph @

Input/Joysticks/Logitech/freedom2-4.xml

raw symbols SCIP
1 <?xml version="1.0" ?>
2 <!--
3 ************************************************************************
4 * Bindings for Logitech Freeedom2-4 (USB) joystick based on
5 * Bindings for Logitech WingMan Extreme Digital 3D (USB) joystick.
6 *
7 *
8 * Axis 0: ailerons
9 * Axis 1: elevator
10 * Axis 2 (slider): throttle
11 * Axis 3 (twist): rudder
12 * Axes 6 and 7 (hat): view direction
13 *
14 * Button 0: all brakes
15 * Button 1: trigger
16 * Button 2: elevator trim up
17 * Button 3: flap up
18 * Button 4: elevator trim down
19 * Button 5: flap down
20 * Button 6: right brake only
21 * Button 7: left brake only
22 * Button 8: prop coarse (advance)
23 * Button 9: prop fine (retard)
24 ************************************************************************
25
26 -->
27 <PropertyList>
28 <name>Logitech Freedom 2.4</name>
29 <name>Logitech Logitech Freedom 2.4</name>
30 <name>Logitech Freedom 2.4 USB</name>
31
32 <axis>
33 <desc>Aileron</desc>
34 <number>
35 <mac>0</mac>
36 <unix>0</unix>
37 <windows>0</windows>
38 </number>
39 <binding>
40 <command>property-scale</command>
41 <property>/controls/flight/aileron</property>
42 <squared type="bool">true</squared>
43 </binding>
44 </axis>
45
46 <axis>
47 <desc>Elevator</desc>
48 <number>
49 <mac>1</mac>
50 <unix>1</unix>
51 <windows>1</windows>
52 </number>
53 <binding>
54 <command>property-scale</command>
55 <property>/controls/flight/elevator</property>
56 <factor type="double">-1.0</factor>
57 <squared type="bool">true</squared>
58 </binding>
59 </axis>
60
61 <axis>
62 <desc>Throttle</desc>
63 <number>
64 <mac>3</mac>
65 <unix>3</unix>
66 <windows>2</windows>
67 </number>
68 <binding>
69 <command>nasal</command>
70 <script>controls.throttleAxis()</script>
71 </binding>
72 </axis>
73
74 <axis>
75 <desc>Rudder</desc>
76 <number>
77 <mac>2</mac>
78 <unix>2</unix>
79 <windows>3</windows>
80 </number>
81 <binding>
82 <command>property-scale</command>
83 <property>/controls/flight/rudder</property>
84 <factor type="double">1.0</factor>
85 </binding>
86 </axis>
87
88 <axis>
89 <desc>View Direction Ctrl Aileron Trim</desc>
90 <number>
91 <mac>4</mac>
92 <unix>4</unix>
93 <windows>6</windows>
94 </number>
95 <low>
96 <repeatable>true</repeatable>
97 <binding>
98 <command>property-adjust</command>
99 <property>/sim/current-view/goal-heading-offset-deg</property>
100 <step type="double">5.0</step>
101 </binding>
102 <mod-ctrl>
103 <desc>aileron adjustment</desc>
104 <binding>
105 <command>nasal</command>
106 <script>controls.aileronTrim(-1)</script>
107 </binding>
108 </mod-ctrl>
109 </low>
110 <high>
111 <repeatable>true</repeatable>
112 <binding>
113 <command>property-adjust</command>
114 <property>/sim/current-view/goal-heading-offset-deg</property>
115 <step type="double">-5.0</step>
116 </binding>
117 <mod-ctrl>
118 <desc>aileron adjustment</desc>
119 <binding>
120 <command>nasal</command>
121 <script>controls.aileronTrim(1)</script>
122 </binding>
123 </mod-ctrl>
124 </high>
125 </axis>
126
127 <axis>
128 <desc>View Elevation Ctrl Elevator Trim</desc>
129 <number>
130 <mac>5</mac>
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">5.0</step>
140 </binding>
141 <mod-ctrl>
142 <desc>Elevator adjustment</desc>
143 <binding>
144 <command>nasal</command>
145 <script>controls.elevatorTrim(-1)</script>
146 </binding>
147 </mod-ctrl>
148 </low>
149 <high>
150 <repeatable>true</repeatable>
151 <binding>
152 <command>property-adjust</command>
153 <property>/sim/current-view/goal-pitch-offset-deg</property>
154 <step type="double">-5.0</step>
155 </binding>
156 <mod-ctrl>
157 <desc>Elevator adjustment</desc>
158 <binding>
159 <command>nasal</command>
160 <script>controls.elevatorTrim(1)</script>
161 </binding>
162 </mod-ctrl>
163 </high>
164 </axis>
165
166 <button>
167 <desc>Brakes</desc>
168 <number>
169 <mac>0</mac>
170 <unix>0</unix>
171 <windows>0</windows>
172 </number>
173 <binding>
174 <command>nasal</command>
175 <script>controls.applyBrakes(1)</script>
176 </binding>
177 <mod-up>
178 <binding>
179 <command>nasal</command>
180 <script>controls.applyBrakes(0)</script>
181 </binding>
182 </mod-up>
183 </button>
184
185 <button>
186 <desc>Trigger</desc>
187 <number>
188 <mac>1</mac>
189 <unix>1</unix>
190 <windows>1</windows>
191 </number>
192 <binding>
193 <!--<command>property-assign</command>
194 <property>ai/submodels/trigger</property>
195 <value type="bool">1</value>-->
196 <command>nasal</command>
197 <script>controls.trigger(1)</script>
198 </binding>
199 <mod-up>
200 <binding>
201 <!--<command>property-assign</command>
202 <property>ai/submodels/trigger</property>
203 <value type="bool">0</value>-->
204 <command>nasal</command>
205 <script>controls.trigger(0)</script>
206 </binding>
207 </mod-up>
208 </button>
209
210 <button>
211 <desc>Elevator trim up</desc>
212 <number>
213 <mac>2</mac>
214 <unix>2</unix>
215 <windows>2</windows>
216 </number>
217 <repeatable type="bool">true</repeatable>
218 <binding>
219 <command>nasal</command>
220 <script>controls.elevatorTrim(-1)</script>
221 </binding>
222 </button>
223
224 <button>
225 <desc>Elevator trim down</desc>
226 <number>
227 <mac>4</mac>
228 <unix>4</unix>
229 <windows>4</windows>
230 </number>
231 <repeatable type="bool">true</repeatable>
232 <binding>
233 <command>nasal</command>
234 <script>controls.elevatorTrim(1)</script>
235 </binding>
236 </button>
237
238 <button>
239 <desc>Flaps down</desc>
240 <number>
241 <mac>3</mac>
242 <unix>3</unix>
243 <windows>3</windows>
244 </number>
245 <repeatable>false</repeatable>
246 <binding>
247 <command>nasal</command>
248 <script>controls.flapsDown(-1)</script>
249 </binding>
250 <mod-up>
251 <binding>
252 <command>nasal</command>
253 <script>controls.flapsDown(0)</script>
254 </binding>
255 </mod-up>
256 </button>
257
258 <button>
259 <desc>Flaps up</desc>
260 <number>
261 <mac>5</mac>
262 <unix>5</unix>
263 <windows>5</windows>
264 </number>
265 <repeatable>false</repeatable>
266 <binding>
267 <command>nasal</command>
268 <script>controls.flapsDown(1)</script>
269 </binding>
270 <mod-up>
271 <binding>
272 <command>nasal</command>
273 <script>controls.flapsDown(0)</script>
274 </binding>
275 </mod-up>
276 </button>
277
278 <button>
279 <desc>Left brake</desc>
280 <number>
281 <mac>6</mac>
282 <unix>6</unix>
283 <windows>6</windows>
284 </number>
285 <binding>
286 <command>nasal</command>
287 <script>controls.applyBrakes(1, -1)</script>
288 </binding>
289 <mod-up>
290 <binding>
291 <command>nasal</command>
292 <script>controls.applyBrakes(0, -1)</script>
293 </binding>
294 </mod-up>
295 </button>
296
297 <button>
298 <desc>Right brake</desc>
299 <number>
300 <mac>7</mac>
301 <unix>7</unix>
302 <windows>7</windows>
303 </number>
304 <binding>
305 <command>nasal</command>
306 <script>controls.applyBrakes(1, 1)</script>
307 </binding>
308 <mod-up>
309 <binding>
310 <command>nasal</command>
311 <script>controls.applyBrakes(0, 1)</script>
312 </binding>
313 </mod-up>
314 </button>
315
316 <button>
317 <desc>Propeller Coarse</desc>
318 <number>
319 <mac>8</mac>
320 <unix>8</unix>
321 <windows>8</windows>
322 </number>
323 <repeatable>true</repeatable>
324 <binding>
325 <command>property-adjust</command>
326 <property>/controls/engines/engine/propeller-pitch</property>
327 <step type="double">0.1</step>
328 <min type="double">0</min>
329 <max type="double">1</max>
330 </binding>
331 </button>
332
333 <button>
334 <desc>Propeller Fine</desc>
335 <number>
336 <mac>9</mac>
337 <unix>9</unix>
338 <windows>9</windows>
339 </number>
340 <repeatable>true</repeatable>
341 <binding>
342 <command>property-adjust</command>
343 <property>/controls/engines/engine/propeller-pitch</property>
344 <step type="double">-0.1</step>
345 <min type="double">0</min>
346 <max type="double">1</max>
347 </binding>
348 </button>
349 <!-- -->
350 </PropertyList>