Debian Codegraph @

Input/Joysticks/Logitech/wingman-force.xml

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