Debian Codegraph @

Input/Joysticks/SpeedLink/black-hawk-force.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4
5 ************************************************************************
6
7 Bindings for Speedlink Black Hawk Force Vibration joystick. Note that the
8 following button numbers correspond to the ones one the joystick
9 (not the ones used internally).
10 Axis 0: ailerons* Axis 1: elevator* Axis 2: rudder* Axis 3: throttle*
11 Axis 6 and 7 (coolie hat): view direction* Button 1: all brakes*
12 Button 2: elevator trim up* Button 4: elevator trim down*
13 Button 3: center view* Button 5: retract flaps* Button 6: extend flaps*
14 Button 7: landing gear up* Button 8: landing gear down*
15 Button 9: left brake* Button 10: right brake*
16 Button 11: previous view
17 * Button 12: next view
18
19
20 Unfortunately, there is no force feedback implementation (yet?)
21 Have fun! Marky Marc
22 ************************************************************************
23
24 -->
25
26 <PropertyList>
27
28 <name>USB Dual Vibration Joystick</name>
29
30 <axis n="0">
31 <desc>Aileron</desc>
32 <binding>
33 <command>property-scale</command>
34 <property>/controls/flight/aileron</property>
35 <power type="double">2</power>
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 <power type="double">2</power>
46 </binding>
47 </axis>
48
49 <axis n="2">
50 <desc>Throttle</desc>
51 <binding>
52 <command>nasal</command>
53 <script>controls.throttleAxis()</script>
54 </binding>
55 </axis>
56
57 <axis n="3">
58 <desc>Rudder</desc>
59 <binding>
60 <command>property-scale</command>
61 <property>/controls/flight/rudder</property>
62 <power type="double">2</power>
63 </binding>
64 </axis>
65
66 <axis n="6">
67 <desc>View Direction</desc>
68 <low>
69 <repeatable>true</repeatable>
70 <binding>
71 <command>property-adjust</command>
72 <property>/sim/current-view/goal-heading-offset-deg</property>
73 <step type="double">2.0</step>
74 </binding>
75 </low>
76 <high>
77 <repeatable>true</repeatable>
78 <binding>
79 <command>property-adjust</command>
80 <property>/sim/current-view/goal-heading-offset-deg</property>
81 <step type="double">-2.0</step>
82 </binding>
83 </high>
84 </axis>
85
86 <axis n="7">
87 <desc>View Elevation</desc>
88 <low>
89 <repeatable>true</repeatable>
90 <binding>
91 <command>property-adjust</command>
92 <property>/sim/current-view/goal-pitch-offset-deg</property>
93 <step type="double">-2.0</step>
94 </binding>
95 </low>
96 <high>
97 <repeatable>true</repeatable>
98 <binding>
99 <command>property-adjust</command>
100 <property>/sim/current-view/goal-pitch-offset-deg</property>
101 <step type="double">2.0</step>
102 </binding>
103 </high>
104 </axis>
105
106
107 <button n="0">
108 <desc>Brakes</desc>
109 <binding>
110 <command>nasal</command>
111 <script>controls.applyBrakes(1, 0)</script>
112 </binding>
113 <mod-up>
114 <binding>
115 <command>nasal</command>
116 <script>controls.applyBrakes(0, 0)</script>
117 </binding>
118 </mod-up>
119 </button>
120
121 <button n="1">
122 <desc>Elevator trim up</desc>
123 <repeatable type="bool">true</repeatable>
124 <binding>
125 <command>nasal</command>
126 <script>controls.elevatorTrim(1)</script>
127 </binding>
128 </button>
129
130 <button n="2">
131 <desc>Center View</desc>
132 <repeatable type="bool">false</repeatable>
133 <binding>
134 <command>nasal</command>
135 <script>view.resetView()</script>
136 </binding>
137 </button>
138
139 <button n="3">
140 <desc>Elevator trim down</desc>
141 <repeatable type="bool">true</repeatable>
142 <binding>
143 <command>nasal</command>
144 <script>controls.elevatorTrim(-1)</script>
145 </binding>
146 </button>
147
148 <button n="4">
149 <desc>Flaps down</desc>
150 <repeatable>false</repeatable>
151 <binding>
152 <command>nasal</command>
153 <script>controls.flapsDown(1)</script>
154 </binding>
155 <mod-up>
156 <binding>
157 <command>nasal</command>
158 <script>controls.flapsDown(0)</script>
159 </binding>
160 </mod-up>
161 </button>
162
163 <button n="5">
164 <desc>Flaps up</desc>
165 <repeatable>false</repeatable>
166 <binding>
167 <command>nasal</command>
168 <script>controls.flapsDown(-1)</script>
169 </binding>
170 <mod-up>
171 <binding>
172 <command>nasal</command>
173 <script>controls.flapsDown(0)</script>
174 </binding>
175 </mod-up>
176 </button>
177
178 <button n="6">
179 <desc>Gear up</desc>
180 <binding>
181 <command>nasal</command>
182 <script>controls.gearDown(-1)</script>
183 </binding>
184 <mod-up>
185 <binding>
186 <command>nasal</command>
187 <script>controls.gearDown(0)</script>
188 </binding>
189 </mod-up>
190 </button>
191
192 <button n="7">
193 <desc>Gear down</desc>
194 <binding>
195 <command>nasal</command>
196 <script>controls.gearDown(1)</script>
197 </binding>
198 <mod-up>
199 <binding>
200 <command>nasal</command>
201 <script>controls.gearDown(0)</script>
202 </binding>
203 </mod-up>
204 </button>
205
206 <button n="8">
207 <desc>Left brake</desc>
208 <binding>
209 <command>nasal</command>
210 <script>controls.applyBrakes(1, -1)</script>
211 </binding>
212 <mod-up>
213 <binding>
214 <command>nasal</command>
215 <script>controls.applyBrakes(0, -1)</script>
216 </binding>
217 </mod-up>
218 </button>
219
220 <button n="9">
221 <desc>Right brake</desc>
222 <binding>
223 <command>nasal</command>
224 <script>controls.applyBrakes(1, 1)</script>
225 </binding>
226 <mod-up>
227 <binding>
228 <command>nasal</command>
229 <script>controls.applyBrakes(0, 1)</script>
230 </binding>
231 </mod-up>
232 </button>
233
234 <button n="10">
235 <desc>Scroll in reverse through views</desc>
236 <binding>
237 <command>nasal</command>
238 <script>view.stepView(-1)</script>
239 </binding> </button>
240
241 <button n="11">
242 <desc>Scroll through views</desc>
243 <binding>
244 <command>nasal</command>
245 <script>view.stepView(1)</script>
246 </binding>
247 </button> </PropertyList>
248
249 <!-- end of joystick.xml -->