Debian Codegraph @

Input/Joysticks/Microsoft/sidewinder-force-feed-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 3 (slider): throttle
11 * Axis 2 (twist): rudder
12 * Axes 6 and 7 (hat): view direction
13 *
14 * Button 0: all brakes
15 * Button 1: unassigned
16 * Button 2: elevator trim down
17 * Button 3: elevator trim up
18 * Button 4: right brake only
19 * Button 5: flap down
20 * Button 6: left brake only
21 * Button 7: flap up
22 ************************************************************************
23 $Id:
24 -->
25
26 <PropertyList>
27
28 <name>Microsoft SideWinder Force Feedback Pro</name>
29
30 <axis n="0">
31 <desc>Aileron</desc>
32 <binding>
33 <command>property-scale</command>
34 <property>/controls/flight/aileron</property>
35 <squared type="bool">true</squared>
36 </binding>
37 </axis>
38
39 <axis n="1">
40 <desc>Elevator</desc>
41 <binding>
42 <command>property-scale</command>
43 <property>/controls/flight/elevator</property>
44 <factor type="double">-1.0</factor>
45 <squared type="bool">true</squared>
46 </binding>
47 </axis>
48
49 <axis>
50 <desc>Rudder</desc>
51 <number>
52 <unix>2</unix>
53 <mac>2</mac>
54 <windows>3</windows>
55 </number>
56 <binding>
57 <command>property-scale</command>
58 <property>/controls/flight/rudder</property>
59 <factor type="double">1.0</factor>
60 </binding>
61 </axis>
62
63 <axis>
64 <desc>Throttle</desc>
65 <number>
66 <unix>3</unix>
67 <mac>3</mac>
68 <windows>2</windows>
69 </number>
70 <binding>
71 <command>nasal</command>
72 <script>controls.throttleAxis()</script>
73 </binding>
74 </axis>
75
76 <axis>
77 <desc>View Direction</desc>
78 <number>
79 <unix>4</unix>
80 <mac>4</mac>
81 <windows>6</windows>
82 </number>
83 <low>
84 <repeatable>true</repeatable>
85 <binding>
86 <command>property-adjust</command>
87 <property>/sim/current-view/goal-heading-offset-deg</property>
88 <step type="double">1.0</step>
89 </binding>
90 </low>
91 <high>
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 </high>
99 </axis>
100
101 <axis>
102 <desc>View Elevation</desc>
103 <number>
104 <unix>5</unix>
105 <mac>5</mac>
106 <windows>7</windows>
107 </number>
108 <low>
109 <repeatable>true</repeatable>
110 <binding>
111 <command>property-adjust</command>
112 <property>/sim/current-view/goal-pitch-offset-deg</property>
113 <step type="double">1.0</step>
114 </binding>
115 </low>
116 <high>
117 <repeatable>true</repeatable>
118 <binding>
119 <command>property-adjust</command>
120 <property>/sim/current-view/goal-pitch-offset-deg</property>
121 <step type="double">-1.0</step>
122 </binding>
123 </high>
124 </axis>
125
126 <button n="0">
127 <desc>Brakes</desc>
128 <binding>
129 <command>nasal</command>
130 <script>controls.applyBrakes(1)</script>
131 </binding>
132 <mod-up>
133 <binding>
134 <command>nasal</command>
135 <script>controls.applyBrakes(0)</script>
136 </binding>
137 </mod-up>
138 </button>
139
140 <button n="2">
141 <desc>Elevator trim down</desc>
142 <repeatable type="bool">true</repeatable>
143 <binding>
144 <command>property-adjust</command>
145 <property>/controls/flight/elevator-trim</property>
146 <step type="double">-0.001</step>
147 </binding>
148 </button>
149
150 <button n="3">
151 <desc>Elevator trim up</desc>
152 <repeatable type="bool">true</repeatable>
153 <binding>
154 <command>property-adjust</command>
155 <property>/controls/flight/elevator-trim</property>
156 <step type="double">0.001</step>
157 </binding>
158 </button>
159
160 <button n="5">
161 <desc>Flaps down</desc>
162 <repeatable>false</repeatable>
163 <binding>
164 <command>nasal</command>
165 <script>controls.flapsDown(1)</script>
166 </binding>
167 <mod-up>
168 <binding>
169 <command>nasal</command>
170 <script>controls.flapsDown(0)</script>
171 </binding>
172 </mod-up>
173 </button>
174
175 <button n="7">
176 <desc>Flaps up</desc>
177 <repeatable>false</repeatable>
178 <binding>
179 <command>nasal</command>
180 <script>controls.flapsDown(-1)</script>
181 </binding>
182 <mod-up>
183 <binding>
184 <command>nasal</command>
185 <script>controls.flapsDown(0)</script>
186 </binding>
187 </mod-up>
188 </button>
189
190 <button n="4">
191 <desc>Right brake</desc>
192 <binding>
193 <command>nasal</command>
194 <script>controls.applyBrakes(1, 1)</script>
195 </binding>
196 <mod-up>
197 <binding>
198 <command>nasal</command>
199 <script>controls.applyBrakes(0, 1)</script>
200 </binding>
201 </mod-up>
202 </button>
203
204 <button n="6">
205 <desc>Left 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 </PropertyList>