Debian Codegraph @

Input/Joysticks/Microsoft/sidewinder-force-feed.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 (slider): throttle
11 * Axis 3 (twist): rudder
12 * Axes 6 and 7 (hat): view direction
13 *
14 * Button 1: all brakes
15 * Button 2: elevator trim up
16 * Button 3: elevator trim down
17 * Button 4: right brake only
18 * Button 5: flap down
19 * Button 6: left brake only
20 * Button 7: flap up
21 ************************************************************************
22 $Id$
23 -->
24
25 <PropertyList>
26
27 <name>Microsoft SideWinder Force Feed</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>Throttle</desc>
50 <number>
51 <unix>3</unix>
52 <mac>3</mac>
53 <windows>2</windows>
54 </number>
55 <binding>
56 <command>nasal</command>
57 <script>controls.throttleAxis()</script>
58 </binding>
59 </axis>
60
61 <axis>
62 <desc>Rudder</desc>
63 <number>
64 <unix>2</unix>
65 <mac>2</mac>
66 <windows>3</windows>
67 </number>
68 <binding>
69 <command>property-scale</command>
70 <property>/controls/flight/rudder</property>
71 <factor type="double">1.0</factor>
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="1">
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="2">
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="3">
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="5">
160 <desc>Flaps down</desc>
161 <repeatable>false</repeatable>
162 <binding>
163 <command>nasal</command>
164 <script>controls.flapsDown(1)</script>
165 </binding>
166 <mod-up>
167 <binding>
168 <command>nasal</command>
169 <script>controls.flapsDown(0)</script>
170 </binding>
171 </mod-up>
172 </button>
173
174 <button n="7">
175 <desc>Flaps up</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="4">
190 <desc>Right brake</desc>
191 <binding>
192 <command>nasal</command>
193 <script>controls.applyBrakes(1, 1)</script>
194 </binding>
195 <mod-up>
196 <binding>
197 <command>nasal</command>
198 <script>controls.applyBrakes(0, 1)</script>
199 </binding>
200 </mod-up>
201 </button>
202
203 <button n="6">
204 <desc>Left brake</desc>
205 <binding>
206 <command>nasal</command>
207 <script>controls.applyBrakes(1, -1)</script>
208 </binding>
209 <mod-up>
210 <binding>
211 <command>nasal</command>
212 <script>controls.applyBrakes(0, -1)</script>
213 </binding>
214 </mod-up>
215 </button>
216
217 </PropertyList>