Debian Codegraph @

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

raw symbols SCIP
1 <?xml version="1.0"?>
2 <!-- Speedlink Black Widow Force
3
4 Copyright (C) 2010 Michael Landwehr (potholer(at)web.de).
5 This file is released under the GPL license.
6
7 Overview over the Functions of Axes and Buttons:
8
9 Axes on the Stick:
10 Axis 0 = Aileron
11 Axis 1 = Elevator
12 Axis 2 = Throttle
13 Axis 3 = Rudder
14 Axis 4 = View Direction
15 Axis 5 = View Elevation
16
17 Buttons on the Stick:
18 Button 0 = Center View (F1; backside)
19 Button 1 = Brakes (F2)
20 Button 2 = Elevator Trim up (F3)
21 Button 3 = Elevator Trim down (F4)
22 Button 4 = Flaps down (F5)
23 Button 5 = Flaps up (F6)
24 Button 6 = Gear down (F7)
25 Button 7 = Gear up (F8)
26 -->
27
28 <PropertyList>
29
30 <name>Black Widow Force</name>
31
32 <axis n="0">
33 <desc>Aileron</desc>
34 <binding>
35 <command>property-scale</command>
36 <property>/controls/flight/aileron</property>
37 <power type="double">2</power>
38 </binding>
39 </axis>
40
41 <axis n="1">
42 <desc>Elevator</desc>
43 <binding>
44 <command>property-scale</command>
45 <property>/controls/flight/elevator</property>
46 <factor type="double">-1.0</factor>
47 <power type="double">2</power>
48 </binding>
49 </axis>
50
51 <axis n="2">
52 <desc>Throttle</desc>
53 <binding>
54 <command>nasal</command>
55 <script>controls.throttleAxis()</script>
56 </binding>
57 </axis>
58
59 <axis n="3">
60 <desc>Rudder</desc>
61 <binding>
62 <command>property-scale</command>
63 <property>/controls/flight/rudder</property>
64 <power type="double">2</power>
65 </binding>
66 </axis>
67
68 <axis n="4">
69 <desc>View Direction</desc>
70 <low>
71 <repeatable>true</repeatable>
72 <binding>
73 <command>property-adjust</command>
74 <property>/sim/current-view/goal-heading-offset-deg</property>
75 <step type="double">2.0</step>
76 </binding>
77 </low>
78 <high>
79 <repeatable>true</repeatable>
80 <binding>
81 <command>property-adjust</command>
82 <property>/sim/current-view/goal-heading-offset-deg</property>
83 <step type="double">-2.0</step>
84 </binding>
85 </high>
86 </axis>
87
88 <axis n="5">
89 <desc>View Elevation</desc>
90 <low>
91 <repeatable>true</repeatable>
92 <binding>
93 <command>property-adjust</command>
94 <property>/sim/current-view/goal-pitch-offset-deg</property>
95 <step type="double">-2.0</step>
96 </binding>
97 </low>
98 <high>
99 <repeatable>true</repeatable>
100 <binding>
101 <command>property-adjust</command>
102 <property>/sim/current-view/goal-pitch-offset-deg</property>
103 <step type="double">2.0</step>
104 </binding>
105 </high>
106 </axis>
107
108 <button n="0">
109 <desc>Center View</desc>
110 <repeatable type="bool">false</repeatable>
111 <binding>
112 <command>nasal</command>
113 <script>view.resetView()</script>
114 </binding>
115 </button>
116
117 <button n="1">
118 <desc>Brakes</desc>
119 <binding>
120 <command>nasal</command>
121 <script>controls.applyBrakes(1, 0)</script>
122 </binding>
123 <mod-up>
124 <binding>
125 <command>nasal</command>
126 <script>controls.applyBrakes(0, 0)</script>
127 </binding>
128 </mod-up>
129 </button>
130
131 <button n="2">
132 <desc>Elevator trim up</desc>
133 <repeatable type="bool">true</repeatable>
134 <binding>
135 <command>nasal</command>
136 <script>controls.elevatorTrim(1)</script>
137 </binding>
138 </button>
139
140 <button n="3">
141 <desc>Elevator trim down</desc>
142 <repeatable type="bool">true</repeatable>
143 <binding>
144 <command>nasal</command>
145 <script>controls.elevatorTrim(-1)</script>
146 </binding>
147 </button>
148
149 <button n="4">
150 <desc>Flaps down</desc>
151 <repeatable>false</repeatable>
152 <binding>
153 <command>nasal</command>
154 <script>controls.flapsDown(1)</script>
155 </binding>
156 <mod-up>
157 <binding>
158 <command>nasal</command>
159 <script>controls.flapsDown(0)</script>
160 </binding>
161 </mod-up>
162 </button>
163
164 <button n="5">
165 <desc>Flaps up</desc>
166 <repeatable>false</repeatable>
167 <binding>
168 <command>nasal</command>
169 <script>controls.flapsDown(-1)</script>
170 </binding>
171 <mod-up>
172 <binding>
173 <command>nasal</command>
174 <script>controls.flapsDown(0)</script>
175 </binding>
176 </mod-up>
177 </button>
178
179 <button n="6">
180 <desc>Gear down</desc>
181 <binding>
182 <command>nasal</command>
183 <script>controls.gearDown(1)</script>
184 </binding>
185 <mod-up>
186 <binding>
187 <command>nasal</command>
188 <script>controls.gearDown(0)</script>
189 </binding>
190 </mod-up>
191 </button>
192
193 <button n="7">
194 <desc>Gear up</desc>
195 <binding>
196 <command>nasal</command>
197 <script>controls.gearDown(-1)</script>
198 </binding>
199 <mod-up>
200 <binding>
201 <command>nasal</command>
202 <script>controls.gearDown(0)</script>
203 </binding>
204 </mod-up>
205 </button>
206
207 </PropertyList>
208