Debian Codegraph @

Input/Joysticks/Logitech/force-3d-pro.xml

raw symbols SCIP
1 <?xml version="1.0" ?>
2
3 <!--
4 ************************************************************************
5 * Bindings for Logitech Force 3D Pro joystick.
6 *
7 *
8 * Axis 0: ailerons
9 * Axis 1: elevator
10 * Axis 2 (twist): rudder
11 * Axis 3 (slider): throttle
12 * Axes 4 and 5 (hat): view direction
13 *
14 * Buttons according to the numbers printed on the joystick:
15 * Button 1: all brakes
16 * Button 4: flap down
17 * Button 6: flap up
18 * Button 5: elevator trim up
19 * Button 3: elevator trim down
20 * Button 11: left brake only
21 * Button 12: right brake only
22 ************************************************************************
23 -->
24
25 <PropertyList>
26
27 <name>Logitech Logitech Force 3D Pro USB</name>
28 <name>Logitech Logitech Force 3D Pro</name>
29 <name>Logitech Force 3D Pro USB</name>
30 <name>Logitech Force 3D Pro</name>
31
32 <axis n="0">
33 <desc>Aileron</desc>
34 <binding>
35 <command>property-scale</command>
36 <property>/controls/flight/aileron</property>
37 <squared type="bool">true</squared>
38 <dead-band type="double">0.2</dead-band>
39 </binding>
40 </axis>
41
42 <axis n="1">
43 <desc>Elevator</desc>
44 <binding>
45 <command>property-scale</command>
46 <property>/controls/flight/elevator</property>
47 <factor type="double">-1.0</factor>
48 <squared type="bool">true</squared>
49 <dead-band type="double">0.2</dead-band>
50 </binding>
51 </axis>
52
53 <axis>
54 <desc>Rudder</desc>
55 <number>
56 <unix>2</unix>
57 <mac>3</mac>
58 <windows>3</windows>
59 </number>
60 <binding>
61 <command>property-scale</command>
62 <property>/controls/flight/rudder</property>
63 <factor type="double">1.0</factor>
64 </binding>
65 </axis>
66
67 <axis>
68 <desc>Throttle</desc>
69 <number>
70 <unix>3</unix>
71 <mac>2</mac>
72 <windows>2</windows>
73 </number>
74 <binding>
75 <command>nasal</command>
76 <script>controls.throttleAxis()</script>
77 </binding>
78 </axis>
79
80 <axis>
81 <desc>View Direction</desc>
82 <number>
83 <unix>4</unix>
84 <windows>6</windows>
85 </number>
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">2.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">-2.0</step>
100 </binding>
101 </high>
102 </axis>
103
104 <axis>
105 <desc>View Elevation</desc>
106 <number>
107 <unix>5</unix>
108 <windows>7</windows>
109 </number>
110 <low>
111 <repeatable>true</repeatable>
112 <binding>
113 <command>property-adjust</command>
114 <property>/sim/current-view/goal-pitch-offset-deg</property>
115 <step type="double">-2.0</step>
116 </binding>
117 </low>
118 <high>
119 <repeatable>true</repeatable>
120 <binding>
121 <command>property-adjust</command>
122 <property>/sim/current-view/goal-pitch-offset-deg</property>
123 <step type="double">2.0</step>
124 </binding>
125 </high>
126 </axis>
127
128 <button n="0">
129 <desc>Brakes</desc>
130 <binding>
131 <command>nasal</command>
132 <script>controls.applyBrakes(1)</script>
133 </binding>
134 <mod-up>
135 <binding>
136 <command>nasal</command>
137 <script>controls.applyBrakes(0)</script>
138 </binding>
139 </mod-up>
140 </button>
141
142 <button n="4">
143 <desc>Elevator trim up</desc>
144 <repeatable type="bool">true</repeatable>
145 <binding>
146 <command>property-adjust</command>
147 <property>/controls/flight/elevator-trim</property>
148 <step type="double">0.001</step>
149 </binding>
150 </button>
151
152 <button n="2">
153 <desc>Elevator trim down</desc>
154 <repeatable type="bool">true</repeatable>
155 <binding>
156 <command>property-adjust</command>
157 <property>/controls/flight/elevator-trim</property>
158 <step type="double">-0.001</step>
159 </binding>
160 </button>
161
162 <button n="3">
163 <desc>Flaps down</desc>
164 <binding>
165 <command>nasal</command>
166 <script>controls.flapsDown(1)</script>
167 </binding>
168 <mod-up>
169 <binding>
170 <command>nasal</command>
171 <script>controls.flapsDown(0)</script>
172 </binding>
173 </mod-up>
174 </button>
175
176 <button n="5">
177 <desc>Flaps up</desc>
178 <repeatable>false</repeatable>
179 <binding>
180 <command>nasal</command>
181 <script>controls.flapsDown(-1)</script>
182 </binding>
183 <mod-up>
184 <binding>
185 <command>nasal</command>
186 <script>controls.flapsDown(0)</script>
187 </binding>
188 </mod-up>
189 </button>
190
191 <button n="10">
192 <desc>Left brake</desc>
193 <binding>
194 <command>nasal</command>
195 <script>controls.applyBrakes(1, -1)</script>
196 </binding>
197 <mod-up>
198 <binding>
199 <command>nasal</command>
200 <script>controls.applyBrakes(0, -1)</script>
201 </binding>
202 </mod-up>
203 </button>
204
205 <button n="11">
206 <desc>Right brake</desc>
207 <binding>
208 <command>nasal</command>
209 <script>controls.applyBrakes(1, 1)</script>
210 </binding>
211 <mod-up>
212 <binding>
213 <command>nasal</command>
214 <script>controls.applyBrakes(0, 1)</script>
215 </binding>
216 </mod-up>
217 </button>
218
219 </PropertyList>
220
221