Debian Codegraph @

Input/Joysticks/Microsoft/sidewinder-3d-pro.xml

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