Debian Codegraph @

Input/Joysticks/Microsoft/sidewinder-precision-pro.xml

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