Debian Codegraph @

Input/Joysticks/Boeder/p20_flightstick_pro_usb.xml

raw symbols SCIP
1 <?xml version="1.0" ?>
2
3 <!--
4 ************************************************************************
5 * Bindings for Boeder P-20 flightstick Pro USB
6 * Jakub Klawiter
7 *
8 * Linux call this chep device as:
9 *
10 * usb 1-5: new low speed USB device using ohci_hcd and address 6
11 * usb 1-5: configuration #1 chosen from 1 choice
12 * input: HID 05ef:0321 as /class/input/input2
13 * input: USB HID v1.00 Joystick [HID 05ef:0321] on usb-0000:00:02.0-5
14 *
15 * # lsusb
16 * Bus 001 Device 006: ID 05ef:0321 AVB, Inc. [anko?]
17 *
18 * Windows says:
19 * 4-axis 8 buttons joystick with setup switch
20 * Windows pl_PL (here is the problemm):
21 * 4-osiowy 8-przyciskowy joystick z prze��cznikiem ustawie�
22 *
23 * Axis 0 - ailerons (lotki)
24 * Axis 1 - elevator (ster wysokosci)
25 * Axis 2 - rudder (ster kierunku)
26 * Axis 3 - throttle (przepustnica)
27 * Axis 4 - view east/west (widok prawo/lewo)
28 * Axis 5 - view north/east (widok gora/dol)
29 *
30 * button 0001 (0) - all brakes (hamulec)
31 * button 0002 (1) - views cycle (widoki)
32 * button 0004 (2) - flaps down (klapy otwieranie)
33 * button 0008 (3) - flaps up (klapy zamykanie)
34 * button 0010 (4) - mixture poorer (ubozsza mieszanka)
35 * button 0020 (5) - mixture richer (bogatsza mieszanka)
36 * button 0040 (6) - propeller pitch (kąt smigła)
37 * button 0080 (7) - propeller pitch (kąt śmigła)
38 ************************************************************************
39 $Id$
40 -->
41
42
43 <PropertyList>
44
45 <name>HID 05ef:0321</name>
46
47 <axis n="0">
48 <desc>Aileron</desc>
49 <binding>
50 <command>property-scale</command>
51 <property>/controls/flight/aileron</property>
52 <dead-band type="double">0.02</dead-band>
53 <offset type="double">0.0</offset>
54 <factor type="double">1.0</factor>
55 </binding>
56 </axis>
57
58 <axis n="1">
59 <desc>Elevator</desc>
60 <binding>
61 <command>property-scale</command>
62 <property>/controls/flight/elevator</property>
63 <dead-band type="double">0.02</dead-band>
64 <offset type="double">0.0</offset>
65 <factor type="double">-1.0</factor>
66 </binding>
67 </axis>
68
69 <axis n="2">
70 <desc>Rudder</desc>
71 <binding>
72 <command>property-scale</command>
73 <property>/controls/flight/rudder</property>
74 <dead-band type="double">0.1</dead-band> <!-- fgjs 0.02 -->
75 <offset type="double">0.0</offset>
76 <factor type="double">1.0</factor>
77 </binding>
78 </axis>
79
80 <axis n="3">
81 <desc>Throttle</desc>
82 <binding>
83 <command>nasal</command>
84 <script>controls.throttleAxis()</script>
85 </binding>
86 </axis>
87
88 <axis n="4">
89 <desc>View Direction</desc>
90 <low>
91 <repeatable>true</repeatable>
92 <binding>
93 <command>property-adjust</command>
94 <property>/sim/current-view/goal-heading-offset-deg</property>
95 <step type="double">1.0</step>
96 </binding>
97 </low>
98 <high>
99 <repeatable>true</repeatable>
100 <binding>
101 <command>property-adjust</command>
102 <property>/sim/current-view/goal-heading-offset-deg</property>
103 <step type="double">-1.0</step>
104 </binding>
105 </high>
106 </axis>
107
108 <axis n="5">
109 <desc>View Elevation</desc>
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">1.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">-1.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="1">
143 <desc>View Cycle</desc>
144 <repeatable>false</repeatable>
145 <binding>
146 <command>nasal</command>
147 <script>view.stepView(1)</script>
148 </binding>
149 </button>
150
151 <button n="2">
152 <desc>Flaps Down</desc>
153 <repeatable>false</repeatable>
154 <binding>
155 <command>nasal</command>
156 <script>controls.flapsDown(1)</script>
157 </binding>
158 <mod-up>
159 <binding>
160 <command>nasal</command>
161 <script>controls.flapsDown(0)</script>
162 </binding>
163 </mod-up>
164 </button>
165
166 <button n="3">
167 <desc>Flaps Up</desc>
168 <repeatable>false</repeatable>
169 <binding>
170 <command>nasal</command>
171 <script>controls.flapsDown(-1)</script>
172 </binding>
173 <mod-up>
174 <binding>
175 <command>nasal</command>
176 <script>controls.flapsDown(0)</script>
177 </binding>
178 </mod-up>
179 </button>
180
181 <button n="4">
182 <desc>Mixure weaker</desc>
183 <repeatable>true</repeatable>
184 <binding>
185 <command>nasal</command>
186 <script>controls.adjMixture(-1)</script>
187 </binding>
188 </button>
189
190 <button n="5">
191 <desc>Mixure richer</desc>
192 <repeatable>true</repeatable>
193 <binding>
194 <command>nasal</command>
195 <script>controls.adjMixture(1)</script>
196 </binding>
197 </button>
198
199 <button n="6">
200 <desc>Propeller pitch</desc>
201 <repeatable>true</repeatable>
202 <binding>
203 <command>nasal</command>
204 <script>controls.adjPropeller(-1)</script>
205 </binding>
206 </button>
207
208 <button n="7">
209 <desc>Propeller pitch</desc>
210 <repeatable>true</repeatable>
211 <binding>
212 <command>nasal</command>
213 <script>controls.adjPropeller(1)</script>
214 </binding>
215 </button>
216
217 </PropertyList>
218
219 <!-- end of joystick.xml -->