Debian Codegraph @

Input/Joysticks/Logitech/wingman-interceptor.xml

raw symbols SCIP
1 <?xml version="1.0" ?>
2 <!-- created by Erik Streb del Toro -->
3 <!--
4 ************************************************************************
5 * Bindings for Logitech WingMan Interceptor joystick (gameport).
6 *
7 *
8 * Axis 0: ailerons
9 * Axis 1: elevator
10 * Axis 2 (slider): throttle
11 * Axes 6 (left-right) and 7 (down-up) (hat): view direction
12 *
13 * Buttons according to the numbers printed in game controller properties:
14 * Button 1: all brakes
15 * Button 2: Scroll through views
16 * Button 4: elevator trim up
17 * Button 5: elevator trim down
18 * Button 7: flap down
19 * Button 6: flap up
20 * Button 3: Gear up
21 * Button 8: left brake only
22 * Button 9: right brake only
23 *
24 * If you have no rudder pedals you could use this as a workaround
25 * (you have to uncomment the definitions in this file):
26 * Button 8: rudder left
27 * Button 9: rudder right
28 ************************************************************************
29 $Id$
30 -->
31
32 <PropertyList>
33
34 <name>Logitech WingMan Interceptor</name>
35
36 <axis n="0">
37 <desc>Aileron</desc>
38 <binding>
39 <command>property-scale</command>
40 <property>/controls/flight/aileron</property>
41 <squared type="bool">true</squared>
42 </binding>
43 </axis>
44
45 <axis n="1">
46 <desc>Elevator</desc>
47 <binding>
48 <command>property-scale</command>
49 <property>/controls/flight/elevator</property>
50 <factor type="double">-1.0</factor>
51 <squared type="bool">true</squared>
52 </binding>
53 </axis>
54
55 <axis n="2">
56 <desc>Throttle</desc>
57 <binding>
58 <command>nasal</command>
59 <script>controls.throttleAxis()</script>
60 </binding>
61 </axis>
62
63 <axis>
64 <desc>View Direction</desc>
65 <number>
66 <unix>4</unix>
67 <windows>6</windows>
68 <mac>4</mac>
69 </number>
70 <low>
71 <repeatable>true</repeatable>
72 <binding>
73 <command>property-adjust</command>
74 <property>/sim/current-view/goal-heading-offset-deg</property>
75 <step type="double">2.5</step>
76 </binding>
77 </low>
78 <high>
79 <repeatable>true</repeatable>
80 <binding>
81 <command>property-adjust</command>
82 <property>/sim/current-view/goal-heading-offset-deg</property>
83 <step type="double">-2.5</step>
84 </binding>
85 </high>
86 </axis>
87
88 <axis>
89 <desc>View Elevation</desc>
90 <number>
91 <unix>5</unix>
92 <windows>7</windows>
93 <mac>5</mac>
94 </number>
95 <low>
96 <repeatable>true</repeatable>
97 <binding>
98 <command>property-adjust</command>
99 <property>/sim/current-view/goal-pitch-offset-deg</property>
100 <step type="double">1.0</step>
101 </binding>
102 </low>
103 <high>
104 <repeatable>true</repeatable>
105 <binding>
106 <command>property-adjust</command>
107 <property>/sim/current-view/goal-pitch-offset-deg</property>
108 <step type="double">-1.0</step>
109 </binding>
110 </high>
111 </axis>
112
113 <button n="0">
114 <desc>Brakes</desc>
115 <binding>
116 <command>nasal</command>
117 <script>controls.applyBrakes(1)</script>
118 </binding>
119 <mod-up>
120 <binding>
121 <command>nasal</command>
122 <script>controls.applyBrakes(0)</script>
123 </binding>
124 </mod-up>
125 </button>
126
127 <button n="1">
128 <desc>Scroll through views</desc>
129 <binding>
130 <command>nasal</command>
131 <script>view.stepView(1)</script>
132 </binding>
133 </button>
134
135 <button n="4">
136 <desc>Elevator trim up</desc>
137 <repeatable type="bool">true</repeatable>
138 <binding>
139 <command>property-adjust</command>
140 <property>/controls/flight/elevator-trim</property>
141 <step type="double">0.001</step>
142 </binding>
143 </button>
144
145 <button n="3">
146 <desc>Elevator trim down</desc>
147 <repeatable type="bool">true</repeatable>
148 <binding>
149 <command>property-adjust</command>
150 <property>/controls/flight/elevator-trim</property>
151 <step type="double">-0.001</step>
152 </binding>
153 </button>
154
155 <button n="6">
156 <desc>Flaps down</desc>
157 <binding>
158 <command>nasal</command>
159 <script>controls.flapsDown(1)</script>
160 </binding>
161 <mod-up>
162 <binding>
163 <command>nasal</command>
164 <script>controls.flapsDown(0)</script>
165 </binding>
166 </mod-up>
167 </button>
168
169 <button n="5">
170 <desc>Flaps up</desc>
171 <repeatable>false</repeatable>
172 <binding>
173 <command>nasal</command>
174 <script>controls.flapsDown(-1)</script>
175 </binding>
176 <mod-up>
177 <binding>
178 <command>nasal</command>
179 <script>controls.flapsDown(0)</script>
180 </binding>
181 </mod-up>
182 </button>
183
184 <button n="2">
185 <desc>Gear up</desc>
186 <repeatable>false</repeatable>
187 <binding>
188 <command>nasal</command>
189 <script>controls.gearDown(-1)</script>
190 </binding>
191 <mod-up>
192 <binding>
193 <command>nasal</command>
194 <script>controls.gearDown(0)</script>
195 </binding>
196 </mod-up>
197 </button>
198
199 <button n="7">
200 <desc>Left brake</desc>
201 <binding>
202 <command>nasal</command>
203 <script>controls.applyBrakes(1, -1)</script>
204 </binding>
205 <mod-up>
206 <binding>
207 <command>nasal</command>
208 <script>controls.applyBrakes(0, -1)</script>
209 </binding>
210 </mod-up>
211 </button>
212
213 <button n="8">
214 <desc>Right brake</desc>
215 <binding>
216 <command>nasal</command>
217 <script>controls.applyBrakes(1, 1)</script>
218 </binding>
219 <mod-up>
220 <binding>
221 <command>nasal</command>
222 <script>controls.applyBrakes(0, 1)</script>
223 </binding>
224 </mod-up>
225 </button>
226
227 <!-- I have no rudder, so I need those "buttons" to move the rudder
228 <button n="7">
229 <desc>Rudder trim adjustment left</desc>
230 <repeatable type="bool">true</repeatable>
231 <binding>
232 <command>property-adjust</command>
233 <property>/controls/flight/rudder</property>
234 <step type="double">-0.01</step>
235 </binding>
236 </button>
237
238 <button n="8">
239 <desc>Rudder trim adjustment right</desc>
240 <repeatable type="bool">true</repeatable>
241 <binding>
242 <command>property-adjust</command>
243 <property>/controls/flight/rudder</property>
244 <step type="double">0.01</step>
245 </binding>
246 </button>
247 -->
248
249 </PropertyList>
250
251