Debian Codegraph @

Input/Joysticks/Logitech/wingman-strike-force-3d.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4 ************************************************************************
5 * Bindings for Logitech WingMan Strike Force 3D joystick.
6 *
7 * This joystick is dual-mode: it can connect either through the
8 * gameport or through a USB port. Bindings are as follow:
9 *
10 * Axis 0: ailerons lotki
11 * Axis 1: elevator ster wysokosci
12 * Axis 2 (twist): rudder ster kierunku
13 * Axis 3 (slider): throttle przepustnica
14 * Axes 4 and 5 (hat): view direction
15 *
16 * Button 0 (trigger): all brakes hamulce
17 * Button 1 (02): elevator trim up trymer steru wysokosci
18 * Button 2 (03): elevator trim down trymer steru wysokosci
19 * Button 9 (H2 up): mixture richer
20 * Button 11 (H2 down): mixture leaner
21 * Button 12 (H2 left): left brake only
22 * Button 10 (H2 right): right brake only
23 * Button 4 (05): Flaps Down
24 * Button 5 (06): Flaps Up
25 * Button 6 (07): Landing Gear Up/Down toggle
26 * Button 3 (04): View Cycle
27
28 ************************************************************************
29 $Id$
30 -->
31
32 <PropertyList>
33
34 <name>Logitech Inc. WingMan Strike Force 3D</name>
35
36 <axis n="0">
37 <desc>Aileron</desc>
38 <binding>
39 <command>property-scale</command>
40 <property>/controls/flight/aileron</property>
41 <squared>true</squared>
42 <factor type="double">5.0</factor>
43 </binding>
44 </axis>
45
46 <axis n="1">
47 <desc>Elevator</desc>
48 <binding>
49 <command>property-scale</command>
50 <property>/controls/flight/elevator</property>
51 <factor type="double">-5.0</factor>
52 <squared>true</squared>
53 </binding>
54 </axis>
55
56 <axis n="2">
57 <desc>Rudder</desc>
58 <binding>
59 <command>property-scale</command>
60 <property>/controls/flight/rudder</property>
61 <factor type="double">3.0</factor>
62 <squared>true</squared>
63 </binding>
64 </axis>
65
66 <axis n="3">
67 <desc>Throttle</desc>
68 <binding>
69 <command>nasal</command>
70 <script>controls.throttleAxis()</script>
71 </binding>
72 </axis>
73
74 <!-- The next two axes are the view hat -->
75 <axis n="4">
76 <desc>View Direction</desc>
77 <low>
78 <repeatable>true</repeatable>
79 <binding>
80 <command>property-adjust</command>
81 <property>/sim/current-view/goal-heading-offset-deg</property>
82 <step type="double">5.0</step>
83 </binding>
84 </low>
85 <high>
86 <repeatable>true</repeatable>
87 <binding>
88 <command>property-adjust</command>
89 <property>/sim/current-view/goal-heading-offset-deg</property>
90 <step type="double">-5.0</step>
91 </binding>
92 </high>
93 </axis>
94
95 <axis n="5">
96 <desc>View Elevation</desc>
97 <low>
98 <repeatable>true</repeatable>
99 <binding>
100 <command>property-adjust</command>
101 <property>/sim/current-view/goal-pitch-offset-deg</property>
102 <step type="double">5.0</step>
103 </binding>
104 </low>
105 <high>
106 <repeatable>true</repeatable>
107 <binding>
108 <command>property-adjust</command>
109 <property>/sim/current-view/goal-pitch-offset-deg</property>
110 <step type="double">-5.0</step>
111 </binding>
112 </high>
113 </axis>
114
115 <button n="3">
116 <desc>View Cycle</desc>
117 <repeatable>false</repeatable>
118 <binding>
119 <command>nasal</command>
120 <script>view.stepView(1)</script>
121 </binding>
122 </button>
123
124 <button n="0">
125 <desc>Brakes</desc>
126 <binding>
127 <command>nasal</command>
128 <script>controls.applyBrakes(1)</script>
129 </binding>
130 <mod-up>
131 <binding>
132 <command>nasal</command>
133 <script>controls.applyBrakes(0)</script>
134 </binding>
135 </mod-up>
136 </button>
137
138 <button n="1">
139 <desc>Aileron trim right</desc>
140 <repeatable>true</repeatable>
141 <binding>
142 <command>nasal</command>
143 <script>controls.elevatorTrim(0.75)</script>
144 </binding>
145 </button>
146
147 <button n="2">
148 <desc>Aileron trim left</desc>
149 <repeatable>true</repeatable>
150 <binding>
151 <command>nasal</command>
152 <script>controls.elevatorTrim(-0.75)</script>
153 </binding>
154 </button>
155
156 <button n="9">
157 <desc>Mixture richer</desc>
158 <repeatable>true</repeatable>
159 <binding>
160 <command>nasal</command>
161 <script>controls.adjMixture(1)</script>
162 </binding>
163 </button>
164
165 <button n="11">
166 <desc>Mixture leaner</desc>
167 <repeatable>true</repeatable>
168 <binding>
169 <command>nasal</command>
170 <script>controls.adjMixture(-1)</script>
171 </binding>
172 </button>
173
174 <button n="12">
175 <desc>Apply left brakes</desc>
176 <repeatable>false</repeatable>
177 <binding>
178 <command>nasal</command>
179 <script>controls.applyBrakes(1,-1)</script>
180 </binding>
181 <mod-up>
182 <binding>
183 <command>nasal</command>
184 <script>controls.applyBrakes(0,-1)</script>
185 </binding>
186 </mod-up>
187 </button>
188
189 <button n="10">
190 <desc>Apply right brakes</desc>
191 <repeatable>false</repeatable>
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="5">
205 <desc>Flaps Up</desc>
206 <repeatable>false</repeatable>
207 <binding>
208 <command>nasal</command>
209 <script>controls.flapsDown(-1)</script>
210 </binding>
211 <mod-up>
212 <binding>
213 <command>nasal</command>
214 <script>controls.flapsDown(0)</script>
215 </binding>
216 </mod-up>
217 </button>
218
219 <button n="4">
220 <desc>Flaps Down</desc>
221 <repeatable>false</repeatable>
222 <binding>
223 <command>nasal</command>
224 <script>controls.flapsDown(1)</script>
225 </binding>
226 <mod-up>
227 <binding>
228 <command>nasal</command>
229 <script>controls.flapsDown(0)</script>
230 </binding>
231 </mod-up>
232 </button>
233
234 <button n="6">
235 <desc>Gear Toggle</desc>
236 <repeatable>false</repeatable>
237 <binding>
238 <command>nasal</command>
239 <script>controls.gearToggle()</script>
240 </binding>
241 </button>
242
243 </PropertyList>