Debian Codegraph @

Input/Joysticks/CH/fighterstick-usb.xml

raw symbols SCIP
1 <?xml version="1.0" ?>
2 <!--
3 ************************************************************************
4 * Bindings for CH Fighterstick USB joystick.
5 *
6 * Axis 0 : Ailerons
7 * Axis 1 : Elevator
8 * Axis 2 : Throttle
9 * Axes 6 : Rudder trim (8-way hat)
10 * Axes 7 : Elevator trim (8-way hat)
11 *
12 * Button 0 (trigger) : Trigger
13 * Button 1 (top left) : PTT - Push To Talk (via VoIP)
14 * Button 2 (top right): Parking brake
15 * Button 3 (bottom) : view reset
16 * Button 5/6 (left 4-way up/down): Flaps
17 * Button 8-11 (bottom right 4-way): Angle of view/View Cycle
18 * Button 12-15 (thumb 4-way): View direction
19 ************************************************************************
20 -->
21 <PropertyList>
22
23 <name>CH FIGHTERSTICK USB </name>
24 <name>CH PRODUCTS CH FIGHTERSTICK USB </name>
25
26 <axis n="0">
27 <desc>Aileron</desc>
28 <binding>
29 <command>property-scale</command>
30 <property>/controls/flight/aileron</property>
31 <dead-band type="double">0.02</dead-band>
32 <offset type="double">0.0</offset>
33 <factor type="double">1.0</factor>
34 </binding>
35 </axis>
36
37 <axis n="1">
38 <desc>Elevator</desc>
39 <binding>
40 <command>property-scale</command>
41 <property>/controls/flight/elevator</property>
42 <dead-band type="double">0.02</dead-band>
43 <offset type="double">0.0</offset>
44 <factor type="double">-1.0</factor>
45 </binding>
46 </axis>
47
48 <axis n="2">
49 <desc>Throttle</desc>
50 <binding>
51 <command>nasal</command>
52 <script>controls.throttleAxis()</script>
53 </binding>
54 </axis>
55
56 <axis>
57 <desc>Rudder Trim</desc>
58 <number>
59 <unix>3</unix>
60 <windows>6</windows>
61 </number>
62 <low>
63 <repeatable>true</repeatable>
64 <binding>
65 <command>nasal</command>
66 <script>controls.rudderTrim(-1)</script>
67 </binding>
68 </low>
69 <high>
70 <repeatable>true</repeatable>
71 <binding>
72 <command>nasal</command>
73 <script>controls.rudderTrim(1)</script>
74 </binding>
75 </high>
76 </axis>
77
78 <axis>
79 <desc>Elevator Trim</desc>
80 <number>
81 <unix>4</unix>
82 <windows>7</windows>
83 </number>
84 <low>
85 <repeatable>true</repeatable>
86 <binding>
87 <command>nasal</command>
88 <script>controls.elevatorTrim(1)</script>
89 </binding>
90 </low>
91 <high>
92 <repeatable>true</repeatable>
93 <binding>
94 <command>nasal</command>
95 <script>controls.elevatorTrim(-1)</script>
96 </binding>
97 </high>
98 </axis>
99
100 <button n="0">
101 <name>trigger</name>
102 <desc>Trigger</desc>
103 <binding>
104 <command>nasal</command>
105 <script>controls.trigger(1)</script>
106 </binding>
107 <mod-up>
108 <binding>
109 <command>nasal</command>
110 <script>controls.trigger(0)</script>
111 </binding>
112 </mod-up>
113 </button>
114
115 <button n="1">
116 <name>PTT</name>
117 <desc>Push To Talk (FGCom)</desc>
118 <binding>
119 <command>nasal</command>
120 <script>controls.ptt(1)</script>
121 </binding>
122 <mod-up>
123 <binding>
124 <command>nasal</command>
125 <script>controls.ptt(0)</script>
126 </binding>
127 </mod-up>
128 </button>
129
130 <button n="2">
131 <desc>Parking Brake Off</desc>
132 <repeatable>false</repeatable>
133 <binding>
134 <command>nasal</command>
135 <script>controls.applyParkingBrake(1)</script>
136 </binding>
137 </button>
138
139 <button n="3">
140 <desc>Reset view</desc>
141 <repeatable>false</repeatable>
142 <binding>
143 <command>nasal</command>
144 <script>
145 setprop("/sim/current-view/view-number", 0);
146 setprop("/sim/current-view/goal-pitch-offset-deg", getprop("/sim/view[0]/config/pitch-offset-deg") or 0);
147 setprop("/sim/current-view/goal-heading-offset-deg", 0.0);
148 #setprop("/sim/current-view/field-of-view", getprop("/sim/view/config/default-field-of-view-deg") or 60.0);
149 </script>
150 </binding>
151 </button>
152
153 <button n="4">
154 <desc>Flaps Up</desc>
155 <repeatable>false</repeatable>
156 <binding>
157 <command>nasal</command>
158 <script>controls.flapsDown(-1)</script>
159 </binding>
160 <mod-up>
161 <binding>
162 <command>nasal</command>
163 <script>controls.flapsDown(0)</script>
164 </binding>
165 </mod-up>
166 </button>
167
168 <button n="6">
169 <desc>Flaps Down</desc>
170 <repeatable>false</repeatable>
171 <binding>
172 <command>nasal</command>
173 <script>controls.flapsDown(1)</script>
174 </binding>
175 <mod-up>
176 <binding>
177 <command>nasal</command>
178 <script>controls.flapsDown(0)</script>
179 </binding>
180 </mod-up>
181 </button>
182
183 <button n="8">
184 <desc>View Decrease</desc>
185 <repeatable>true</repeatable>
186 <binding>
187 <command>nasal</command>
188 <script>view.decrease(0.75)</script>
189 </binding>
190 </button>
191
192 <button n="9">
193 <desc>View Cycle Forwards</desc>
194 <repeatable>false</repeatable>
195 <binding>
196 <command>nasal</command>
197 <script>view.stepView(1)</script>
198 </binding>
199 </button>
200
201 <button n="10">
202 <desc>View Increase</desc>
203 <repeatable>true</repeatable>
204 <binding>
205 <command>nasal</command>
206 <script>view.increase(0.75)</script>
207 </binding>
208 </button>
209
210 <button n="11">
211 <desc>View Cycle Backwards</desc>
212 <repeatable>false</repeatable>
213 <binding>
214 <command>nasal</command>
215 <script>view.stepView(-1)</script>
216 </binding>
217 </button>
218
219 <button n="12">
220 <desc>View Up</desc>
221 <repeatable>false</repeatable>
222 <binding>
223 <command>property-adjust</command>
224 <property>/sim/current-view/goal-pitch-offset-deg</property>
225 <step>20.0</step>
226 </binding>
227 </button>
228
229 <button n="13">
230 <desc>View Right</desc>
231 <repeatable>false</repeatable>
232 <binding>
233 <command>property-adjust</command>
234 <property>/sim/current-view/goal-heading-offset-deg</property>
235 <step>-30.0</step>
236 </binding>
237 </button>
238
239 <button n="14">
240 <desc>View Down</desc>
241 <repeatable>false</repeatable>
242 <binding>
243 <command>property-adjust</command>
244 <property>/sim/current-view/goal-pitch-offset-deg</property>
245 <step>-20.0</step>
246 </binding>
247 </button>
248
249 <button n="15">
250 <desc>View Left</desc>
251 <repeatable>false</repeatable>
252 <binding>
253 <command>property-adjust</command>
254 <property>/sim/current-view/goal-heading-offset-deg</property>
255 <step>30.0</step>
256 </binding>
257 </button>
258
259 </PropertyList>