Debian Codegraph @

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

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4 ************************************************************************
5 * Bindings for Logitech WingMan Force 3D USB joystick.
6 *
7 * Bindings are as follow:
8 *
9 * Axis 0: ailerons
10 * Axis 1: elevator
11 * Axis 2 (slider): throttle
12 * Axis 3 (twist): rudder
13 * Axes 6 and 7 (hat): view direction
14 *
15 * Button 0 (trigger): all brakes
16 * Button 1 (02): elevator trim up
17 * Button 2 (03): elevator trim down
18 * Button 3 (04): mixture richer
19 * Button 4 (05): mixture leaner
20 * Button 5 (06): flaps ups
21 * Button 6 (07): flaps down
22 ************************************************************************
23 -->
24
25 <PropertyList>
26
27 <name>Logitech Inc. WingMan Force 3D</name>
28 <name>Logitech Inc. WingMan Force 3d</name>
29 <name>Logitech WingMan Force 3D USB</name>
30
31 <axis n="0">
32 <desc>Aileron</desc>
33 <binding>
34 <command>property-scale</command>
35 <property>/controls/flight/aileron</property>
36 <factor type="double">1.0</factor>
37 <dead-band type="double">0.02</dead-band>
38 <power type="double">2.0</power>
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 <dead-band type="double">0.02</dead-band>
49 <power type="double">2.0</power>
50 </binding>
51 </axis>
52
53 <axis>
54 <desc>Throttle</desc>
55 <number>
56 <unix>3</unix>
57 <mac>2</mac>
58 <windows>2</windows>
59 </number>
60 <binding>
61 <command>nasal</command>
62 <script>controls.throttleAxis()</script>
63 </binding>
64 </axis>
65
66 <axis>
67 <desc>Rudder</desc>
68 <number>
69 <unix>2</unix>
70 <mac>3</mac>
71 <windows>3</windows>
72 </number>
73 <binding>
74 <command>property-scale</command>
75 <property>/controls/flight/rudder</property>
76 <factor type="double">1.0</factor>
77 <dead-band type="double">0.2</dead-band>
78 <power type="double">2.0</power>
79 </binding>
80 </axis>
81
82 <!-- The next two axes are the view hat -->
83 <axis n="4">
84 <desc>View Direction</desc>
85 <low>
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 </low>
93 <high>
94 <repeatable>true</repeatable>
95 <binding>
96 <command>property-adjust</command>
97 <property>/sim/current-view/goal-heading-offset-deg</property>
98 <step type="double">-5.0</step>
99 </binding>
100 </high>
101 </axis>
102
103 <axis n="5">
104 <desc>View Elevation</desc>
105 <low>
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 </low>
113 <high>
114 <repeatable>true</repeatable>
115 <binding>
116 <command>property-adjust</command>
117 <property>/sim/current-view/goal-pitch-offset-deg</property>
118 <step type="double">-5.0</step>
119 </binding>
120 </high>
121 </axis>
122
123 <button n="0">
124 <desc>Brakes</desc>
125 <binding>
126 <command>nasal</command>
127 <script>controls.applyBrakes(1)</script>
128 </binding>
129 <mod-up>
130 <binding>
131 <command>nasal</command>
132 <script>controls.applyBrakes(0)</script>
133 </binding>
134 </mod-up>
135 </button>
136
137 <button n="1">
138 <desc>Elevator trim up</desc>
139 <repeatable>true</repeatable>
140 <binding>
141 <command>nasal</command>
142 <script>controls.elevatorTrim(0.75)</script>
143 </binding>
144 </button>
145
146 <button n="2">
147 <desc>Elevator trim down</desc>
148 <repeatable>true</repeatable>
149 <binding>
150 <command>nasal</command>
151 <script>controls.elevatorTrim(-0.75)</script>
152 </binding>
153 </button>
154
155 <button n="3">
156 <desc>Mixture richer</desc>
157 <repeatable>true</repeatable>
158 <binding>
159 <command>nasal</command>
160 <script>controls.adjMixture(1)</script>
161 </binding>
162 </button>
163
164 <button n="4">
165 <desc>Mixture leaner</desc>
166 <repeatable>true</repeatable>
167 <binding>
168 <command>nasal</command>
169 <script>controls.adjMixture(-1)</script>
170 </binding>
171 </button>
172
173 <button n="5">
174 <desc>Flaps down</desc>
175 <repeatable>false</repeatable>
176 <binding>
177 <command>nasal</command>
178 <script>controls.flapsDown(1)</script>
179 </binding>
180 </button>
181
182 <button n="6">
183 <desc>Flaps up</desc>
184 <repeatable>false</repeatable>
185 <binding>
186 <command>nasal</command>
187 <script>controls.flapsDown(-1)</script>
188 </binding>
189 </button>
190
191 </PropertyList>