Remove excess name tags
[fg:toms-fgdata.git] / Input / Joysticks / Logitech / wingman-extreme-digital-3d.xml
1 <?xml version="1.0"?>
2
3 <!--
4 ************************************************************************
5 * Bindings for Logitech WingMan Digital Extreme 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
11 * Axis 1: elevator
12 * Axis 2 (twist): rudder
13 * Axis 3 (slider): throttle
14 * Axes 5 and 6 (hat): view direction
15 *
16 * Button 0 (trigger): all brakes
17 * Button 1 (02): elevator trim up
18 * Button 2 (03): elevator trim down
19 * Button 3 (04): mixture richer
20 * Button 4 (05): mixture leaner
21 * Button 5 (06): left brake only
22 * Button 6 (07): right brake only
23 ************************************************************************
24 -->
25
26 <PropertyList>
27
28  <name>Logitech Inc. WingMan Extreme Digital 3D</name>
29
30  <axis n="0">
31   <desc>Aileron</desc>
32   <binding>
33    <command>property-scale</command>
34    <property>/controls/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/elevator</property>
44    <factor type="double">-1.0</factor>
45    <squared>true</squared>
46   </binding>
47  </axis>
48
49  <axis n="2">
50   <binding>
51    <command>property-scale</command>
52    <property>/controls/rudder</property>
53    <squared>true</squared>
54   </binding>
55  </axis>
56
57  <axis n="3">
58   <desc>Throttle</desc>
59   <binding>
60    <command>property-scale</command>
61    <property>/controls/throttle[0]</property>
62    <offset type="double">-1.0</offset>
63    <factor type="double">-0.5</factor>
64   </binding>
65   <binding>
66    <command>property-scale</command>
67    <property>/controls/throttle[1]</property>
68    <offset type="double">-1.0</offset>
69    <factor type="double">-0.5</factor>
70   </binding>
71  </axis>
72
73  <!-- The next two axes are the view hat -->
74
75  <axis n="4">
76   <binding>
77    <command>property-scale</command>
78    <property>/sim/current-view/axes/lat</property>
79   </binding>
80  </axis>
81
82  <axis n="5">
83   <binding>
84    <command>property-scale</command>
85    <property>/sim/current-view/axes/long</property>
86   </binding>
87  </axis>
88
89  <button n="0">
90   <desc>Brakes</desc>
91   <binding>
92    <command>property-assign</command>
93    <property>/controls/brakes[0]</property>
94    <value type="double">1.0</value>
95   </binding>
96   <binding>
97    <command>property-assign</command>
98    <property>/controls/brakes[1]</property>
99    <value type="double">1.0</value>
100   </binding>
101   <binding>
102    <command>property-assign</command>
103    <property>/controls/brakes[2]</property>
104    <value type="double">1.0</value>
105   </binding>
106   <mod-up>
107    <binding>
108     <command>property-assign</command>
109     <property>/controls/brakes[0]</property>
110     <value type="double">0.0</value>
111    </binding>
112    <binding>
113     <command>property-assign</command>
114     <property>/controls/brakes[1]</property>
115     <value type="double">0.0</value>
116    </binding>
117    <binding>
118     <command>property-assign</command>
119     <property>/controls/brakes[2]</property>
120     <value type="double">0.0</value>
121    </binding>
122   </mod-up>
123  </button>
124
125  <button n="1">
126   <repeatable>true</repeatable>
127   <binding>
128    <command>property-adjust</command>
129    <property>/controls/elevator-trim</property>
130    <step>0.001</step>
131   </binding>
132  </button>
133
134  <button n="2">
135   <repeatable>true</repeatable>
136   <binding>
137    <command>property-adjust</command>
138    <property>/controls/elevator-trim</property>
139    <step>-0.001</step>
140   </binding>
141  </button>
142
143  <button n="3">
144   <repeatable>true</repeatable>
145   <binding>
146    <command>property-adjust</command>
147    <property>/controls/mixture[0]</property>
148    <property>/controls/mixture[1]</property>
149    <step>0.01</step>
150   </binding>
151  </button>
152
153  <button n="4">
154   <repeatable>true</repeatable>
155   <binding>
156    <command>property-adjust</command>
157    <property>/controls/mixture[0]</property>
158    <property>/controls/mixture[1]</property>
159    <step>-0.01</step>
160   </binding>
161  </button>
162
163  <button n="5">
164   <binding>
165    <command>property-assign</command>
166    <property>/controls/brakes[0]</property>
167    <value type="double">1.0</value>
168   </binding>
169   <mod-up>
170    <binding>
171     <command>property-assign</command>
172     <property>/controls/brakes[0]</property>
173     <value type="double">0.0</value>
174    </binding>
175   </mod-up>
176  </button>
177
178  <button n="6">
179   <binding>
180    <command>property-assign</command>
181    <property>/controls/brakes[1]</property>
182    <value type="double">1.0</value>
183   </binding>
184   <mod-up>
185    <binding>
186     <command>property-assign</command>
187     <property>/controls/brakes[1]</property>
188     <value type="double">0.0</value>
189    </binding>
190   </mod-up>
191  </button>
192
193 </PropertyList>