Debian Codegraph @

Input/Joysticks/Logitech/wingman-extreme-digital-3d.xml

raw symbols SCIP
1 <?xml version="1.0" ?>
2 <!-- Maintainer: Frederic Bouvier -->
3 <!--
4 ************************************************************************
5 * Bindings for Logitech WingMan Extreme Digital 3D (USB) joystick.
6 *
7 *
8 * Axis 0: ailerons
9 * Axis 1: elevator
10 * Axis 2(windows),3(unix,mac) (slider): throttle
11 * Axis 3(windows),2(unix,mac) (twist): rudder
12 * Axes 6&7(windows), 4&5(unix,mac) (hat): view direction
13 *
14 * Button 0: all brakes
15 * Button 1: elevator trim up
16 * Button 2: elevator trim down
17 * Button 3: mixture richer
18 * Button 4: mixture leaner
19 * Button 5: left brake only
20 * Button 6: right brake only
21 ************************************************************************
22 $Id$
23 -->
24
25 <PropertyList>
26
27 <name>Logitech Inc. WingMan Extreme Digital 3D</name>
28 <name>Logitech WingMan Extreme Digital 3D (USB)</name>
29
30 <axis>
31 <desc>Aileron</desc>
32 <number>
33 <unix>0</unix>
34 <mac>0</mac>
35 <windows>0</windows>
36 </number>
37 <binding>
38 <command>property-scale</command>
39 <property>/controls/flight/aileron</property>
40 <squared type="bool">true</squared>
41 </binding>
42 </axis>
43
44 <axis>
45 <desc>Elevator</desc>
46 <number>
47 <unix>1</unix>
48 <mac>1</mac>
49 <windows>1</windows>
50 </number>
51 <binding>
52 <command>property-scale</command>
53 <property>/controls/flight/elevator</property>
54 <factor type="double">-1.0</factor>
55 <squared type="bool">true</squared>
56 </binding>
57 </axis>
58
59 <axis>
60 <desc>Throttle</desc>
61 <number>
62 <unix>3</unix>
63 <mac>3</mac>
64 <windows>2</windows>
65 </number>
66 <binding>
67 <command>nasal</command>
68 <script>controls.throttleAxis()</script>
69 </binding>
70 </axis>
71
72 <axis>
73 <desc>Rudder</desc>
74 <number>
75 <unix>2</unix>
76 <mac>2</mac>
77 <windows>3</windows>
78 </number>
79 <binding>
80 <command>property-scale</command>
81 <property>/controls/flight/rudder</property>
82 <factor type="double">1.0</factor>
83 </binding>
84 </axis>
85
86 <axis n="6">
87 <desc>View Direction</desc>
88 <number>
89 <unix>4</unix>
90 <mac>4</mac>
91 <windows>6</windows>
92 </number>
93 <low>
94 <repeatable>true</repeatable>
95 <binding>
96 <command>property-adjust</command>
97 <property>/sim/current-view/goal-heading-offset-deg</property>
98 <step type="double">1.0</step>
99 </binding>
100 </low>
101 <high>
102 <repeatable>true</repeatable>
103 <binding>
104 <command>property-adjust</command>
105 <property>/sim/current-view/goal-heading-offset-deg</property>
106 <step type="double">-1.0</step>
107 </binding>
108 </high>
109 </axis>
110
111 <axis>
112 <desc>View Elevation</desc>
113 <number>
114 <unix>5</unix>
115 <mac>5</mac>
116 <windows>7</windows>
117 </number>
118 <low>
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 </low>
126 <high>
127 <repeatable>true</repeatable>
128 <binding>
129 <command>property-adjust</command>
130 <property>/sim/current-view/goal-pitch-offset-deg</property>
131 <step type="double">-1.0</step>
132 </binding>
133 </high>
134 </axis>
135
136 <button>
137 <desc>Brakes</desc>
138 <number>
139 <unix>0</unix>
140 <mac>0</mac>
141 <windows>0</windows>
142 </number>
143 <binding>
144 <command>nasal</command>
145 <script>controls.applyBrakes(1)</script>
146 </binding>
147 <mod-up>
148 <binding>
149 <command>nasal</command>
150 <script>controls.applyBrakes(0)</script>
151 </binding>
152 </mod-up>
153 </button>
154
155 <button>
156 <desc>Elevator trim up</desc>
157 <number>
158 <unix>1</unix>
159 <mac>1</mac>
160 <windows>1</windows>
161 </number>
162 <repeatable type="bool">true</repeatable>
163 <binding>
164 <command>nasal</command>
165 <script>controls.elevatorTrim(1)</script>
166 </binding>
167 </button>
168
169 <button>
170 <desc>Elevator trim down</desc>
171 <number>
172 <unix>2</unix>
173 <mac>2</mac>
174 <windows>2</windows>
175 </number>
176 <repeatable type="bool">true</repeatable>
177 <binding>
178 <command>nasal</command>
179 <script>controls.elevatorTrim(-1)</script>
180 </binding>
181 </button>
182
183 <button>
184 <desc>Mixture richer</desc>
185 <number>
186 <unix>3</unix>
187 <mac>3</mac>
188 <windows>3</windows>
189 </number>
190 <repeatable>true</repeatable>
191 <binding>
192 <command>property-adjust</command>
193 <property>/controls/engines/engine[0]/mixture</property>
194 <step>0.01</step>
195 </binding>
196 <binding>
197 <command>property-adjust</command>
198 <property>/controls/engines/engine[1]/mixture</property>
199 <step>0.01</step>
200 </binding>
201 </button>
202
203 <button>
204 <desc>Mixture leaner</desc>
205 <number>
206 <unix>4</unix>
207 <mac>4</mac>
208 <windows>4</windows>
209 </number>
210 <repeatable>true</repeatable>
211 <binding>
212 <command>property-adjust</command>
213 <property>/controls/engines/engine[0]/mixture</property>
214 <step>-0.01</step>
215 </binding>
216 <binding>
217 <command>property-adjust</command>
218 <property>/controls/engines/engine[1]/mixture</property>
219 <step>-0.01</step>
220 </binding>
221 </button>
222
223 <button>
224 <desc>Left brake</desc>
225 <number>
226 <unix>5</unix>
227 <mac>5</mac>
228 <windows>5</windows>
229 </number>
230 <binding>
231 <command>nasal</command>
232 <script>controls.applyBrakes(1, -1)</script>
233 </binding>
234 <mod-up>
235 <binding>
236 <command>nasal</command>
237 <script>controls.applyBrakes(0, -1)</script>
238 </binding>
239 </mod-up>
240 </button>
241
242 <button>
243 <desc>Right brake</desc>
244 <number>
245 <unix>6</unix>
246 <mac>6</mac>
247 <windows>6</windows>
248 </number>
249 <binding>
250 <command>nasal</command>
251 <script>controls.applyBrakes(1, 1)</script>
252 </binding>
253 <mod-up>
254 <binding>
255 <command>nasal</command>
256 <script>controls.applyBrakes(0, 1)</script>
257 </binding>
258 </mod-up>
259 </button>
260
261 </PropertyList>