Debian Codegraph @

Input/Joysticks/Logitech/wingman-rumblepad-usb.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4 ************************************************************************
5 * Setup for Logitech WingMan Rumblepad gamepad.
6 *
7 * This is a USB gamepad with some feedback capability (not supported
8 * by plib or by most OS's). Bindings are as follow:
9 *
10 * Axis 0 (left joystick): ailerons
11 * Axis 1 (left joystick): elevator
12 * Axis 2 (slider): throttle
13 * Axis 3 (right joystick): rudder
14 * Axis 4 (right joystick): (not used)
15 * Axes 5 and 6 (hat): set view direction
16 *
17 * Button 0 (A): elevator trim up
18 * Button 1 (B): decrease propeller pitch
19 * Button 2 (C): mixture leaner
20 * Button 3 (X): elevator trim down
21 * Button 4 (Y): increase propeller pitch
22 * Button 5 (Z): mixture richer
23 * Button 6 (left trigger): left wheel brake
24 * Button 7 (right trigger): right wheel brake
25 * Button 8 (S): cycle view
26 *
27 * Note that the "mode" button swaps the hat/pad and the left stick.
28 * When it is engaged, axis 0<->5 and 1<->6 are swapped.
29 *
30 ************************************************************************
31 $Id$
32 -->
33
34 <PropertyList>
35
36 <name>Logitech Inc. WingMan RumblePad</name>
37 <name>Logitech WingMan RumblePad USB</name>
38 <name>WingMan RumblePad</name>
39
40 <axis n="0">
41 <desc>Aileron</desc>
42 <binding>
43 <command>property-scale</command>
44 <property>/controls/flight/aileron</property>
45 <power type="double">3</power>
46 </binding>
47 </axis>
48
49 <axis n="1">
50 <desc>Elevator</desc>
51 <binding>
52 <command>property-scale</command>
53 <property>/controls/flight/elevator</property>
54 <factor type="double">-1.0</factor>
55 <power type="double">3</power>
56 </binding>
57 </axis>
58
59 <axis n="2">
60 <desc>Throttle</desc>
61 <binding>
62 <command>nasal</command>
63 <script>controls.throttleAxis()</script>
64 </binding>
65 </axis>
66
67 <axis n="3">
68 <desc>Rudder</desc>
69 <binding>
70 <command>property-scale</command>
71 <property>/controls/flight/rudder</property>
72 <power type="double">3</power>
73 </binding>
74 </axis>
75
76 <axis n="4">
77 <desc>unused</desc>
78 <binding>
79 <command>null</command>
80 </binding>
81 </axis>
82
83 <!-- view direction -->
84 <axis n="5">
85 <desc>View Direction</desc>
86 <low>
87 <repeatable>true</repeatable>
88 <binding>
89 <command>property-adjust</command>
90 <property>/sim/current-view/goal-heading-offset-deg</property>
91 <step type="double">5.0</step>
92 </binding>
93 </low>
94 <high>
95 <repeatable>true</repeatable>
96 <binding>
97 <command>property-adjust</command>
98 <property>/sim/current-view/goal-heading-offset-deg</property>
99 <step type="double">-5.0</step>
100 </binding>
101 </high>
102 </axis>
103
104 <axis n="6">
105 <desc>View Elevation</desc>
106 <low>
107 <repeatable>true</repeatable>
108 <binding>
109 <command>property-adjust</command>
110 <property>/sim/current-view/goal-pitch-offset-deg</property>
111 <step type="double">5.0</step>
112 </binding>
113 </low>
114 <high>
115 <repeatable>true</repeatable>
116 <binding>
117 <command>property-adjust</command>
118 <property>/sim/current-view/goal-pitch-offset-deg</property>
119 <step type="double">-5.0</step>
120 </binding>
121 </high>
122 </axis>
123
124 <button n="0">
125 <desc>Elevator trim up</desc>
126 <repeatable>true</repeatable>
127 <binding>
128 <command>property-adjust</command>
129 <property>/controls/flight/elevator-trim</property>
130 <step type="double">-0.001</step>
131 </binding>
132 </button>
133
134 <button n="1">
135 <desc>Decrease propeller pitch</desc>
136 <repeatable>true</repeatable>
137 <binding>
138 <command>property-adjust</command>
139 <property>/controls/engines/engine[0]/propeller-pitch</property>
140 <step>-0.01</step>
141 </binding>
142 <binding>
143 <command>property-adjust</command>
144 <property>/controls/engines/engine[1]/propeller-pitch</property>
145 <step>-0.01</step>
146 </binding>
147 </button>
148
149 <button n="2">
150 <desc>Mixture leaner</desc>
151 <repeatable>true</repeatable>
152 <binding>
153 <command>property-adjust</command>
154 <property>/controls/engines/engine[0]/mixture</property>
155 <step>-0.01</step>
156 </binding>
157 <binding>
158 <command>property-adjust</command>
159 <property>/controls/engines/engine[1]/mixture</property>
160 <step>-0.01</step>
161 </binding>
162 </button>
163
164 <button n="3">
165 <desc>Elevator trim down</desc>
166 <repeatable>true</repeatable>
167 <binding>
168 <command>property-adjust</command>
169 <property>/controls/flight/elevator-trim</property>
170 <step>0.001</step>
171 </binding>
172 </button>
173
174 <button n="4">
175 <desc>Increase propeller pitch</desc>
176 <repeatable>true</repeatable>
177 <binding>
178 <command>property-adjust</command>
179 <property>/controls/engines/engine[0]/propeller-pitch</property>
180 <step>0.01</step>
181 </binding>
182 <binding>
183 <command>property-adjust</command>
184 <property>/controls/engines/engine[1]/propeller-pitch</property>
185 <step>0.01</step>
186 </binding>
187 </button>
188
189 <button n="5">
190 <desc>Mixture richer</desc>
191 <repeatable>true</repeatable>
192 <binding>
193 <command>property-adjust</command>
194 <property>/controls/engines/engine[0]/mixture</property>
195 <step>0.01</step>
196 </binding>
197 <binding>
198 <command>property-adjust</command>
199 <property>/controls/engines/engine[1]/mixture</property>
200 <step>0.01</step>
201 </binding>
202 </button>
203
204 <button n="6">
205 <desc>Left brakes</desc>
206 <binding>
207 <command>nasal</command>
208 <script>controls.applyBrakes(1, -1)</script>
209 </binding>
210 <mod-up>
211 <binding>
212 <command>nasal</command>
213 <script>controls.applyBrakes(0, -1)</script>
214 </binding>
215 </mod-up>
216 </button>
217
218 <button n="7">
219 <desc>Right brakes</desc>
220 <binding>
221 <command>nasal</command>
222 <script>controls.applyBrakes(1, 1)</script>
223 </binding>
224 <mod-up>
225 <binding>
226 <command>nasal</command>
227 <script>controls.applyBrakes(0, 1)</script>
228 </binding>
229 </mod-up>
230 </button>
231
232 <button n="8">
233 <desc>Cycle View</desc>
234 <repeatable>false</repeatable>
235 <binding>
236 <command>nasal</command>
237 <script>view.stepView(1)</script>
238 </binding>
239 </button>
240
241 </PropertyList>
242
243 <!-- end of "rumblepad.fgd" -->