Debian Codegraph @

Input/Joysticks/SpeedLink/defender.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4
5 ************************************************************************
6
7 Bindings for Speedlink Defender joystick.
8 Tested with FG-v2.6 on Windows and FG-v2.4 on Debian
9 as no Mac testing possible, same mapping as Linux is assumed
10 must be evaluated
11 win lin max
12 mapping of axis:
13 ailernon 0 0 0?
14 elevator 1 1 1?
15 rudder 3 2 2?
16 throttle 2 3 3?
17 coolie hat 6 4 4?
18 coolie hat 7 5 5?
19 mapping of buttons
20 center view 0 0 0?
21 all brakes 1 1 1?
22 elevator trim up 2 2 2?
23 elevator trim down 3 3 3?
24
25
26 2012-03-09 Nikolaus Kerner
27 ************************************************************************
28
29 -->
30
31 <PropertyList>
32
33 <name type="string">USB, 4-axis, 4-button joystick w/view finder</name> <!-- WinXP -->
34 <name type="string">Padix Co. Ltd. USB, 4-axis, 4-button joystick w/view finder</name> <!-- Linux -->
35
36 <axis>
37 <desc type="string">Aileron</desc>
38 <number>
39 <windows>0</windows>
40 <unix>0</unix>
41 <mac>0</mac>
42 </number>
43 <binding>
44 <command>property-scale</command>
45 <property>/controls/flight/aileron</property>
46 <dead-band type="double">0.02</dead-band>
47 <offset type="double">0.0</offset>
48 <factor type="double">1.0</factor>
49 <power type="double">1.5</power>
50 </binding>
51 </axis>
52
53 <axis>
54 <desc type="string">Elevator</desc>
55 <number>
56 <windows>1</windows>
57 <unix>1</unix>
58 <mac>1</mac>
59 </number>
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 <power type="double">1.5</power>
67 </binding>
68 </axis>
69
70 <axis>
71 <desc>Rudder</desc>
72 <number>
73 <windows>3</windows>
74 <unix>2</unix>
75 <mac>2</mac>
76 </number>
77 <binding>
78 <command>property-scale</command>
79 <property>/controls/flight/rudder</property>
80 <dead-band type="double">0.02</dead-band>
81 <offset type="double">0.0</offset>
82 <factor type="double">1.0</factor>
83 <power type="double">1.5</power>
84 </binding>
85 </axis>
86
87 <axis>
88 <desc>Throttle</desc>
89 <number>
90 <windows>2</windows>
91 <unix>3</unix>
92 <mac>3</mac>
93 </number>
94 <binding>
95 <command>nasal</command>
96 <script>controls.throttleAxis()</script>
97 </binding>
98 </axis>
99
100 <axis>
101 <desc>View Direction</desc>
102 <number>
103 <windows>6</windows>
104 <unix>4</unix>
105 <mac>4</mac>
106 </number>
107 <low>
108 <repeatable>true</repeatable>
109 <binding>
110 <command>property-adjust</command>
111 <property>/sim/current-view/goal-heading-offset-deg</property>
112 <step type="double">2.0</step>
113 </binding>
114 </low>
115 <high>
116 <repeatable>true</repeatable>
117 <binding>
118 <command>property-adjust</command>
119 <property>/sim/current-view/goal-heading-offset-deg</property>
120 <step type="double">-2.0</step>
121 </binding>
122 </high>
123 </axis>
124
125 <axis>
126 <desc>View Elevation</desc>
127 <number>
128 <windows>7</windows>
129 <unix>5</unix>
130 <mac>5</mac>
131 </number>
132 <low>
133 <repeatable>true</repeatable>
134 <binding>
135 <command>property-adjust</command>
136 <property>/sim/current-view/goal-pitch-offset-deg</property>
137 <step type="double">-2.0</step>
138 </binding>
139 </low>
140 <high>
141 <repeatable>true</repeatable>
142 <binding>
143 <command>property-adjust</command>
144 <property>/sim/current-view/goal-pitch-offset-deg</property>
145 <step type="double">2.0</step>
146 </binding>
147 </high>
148 </axis>
149
150
151 <button n="0">
152 <desc>Center View</desc>
153 <repeatable type="bool">false</repeatable>
154 <binding>
155 <command>nasal</command>
156 <script>view.resetView()</script>
157 </binding>
158 </button>
159
160 <button n="1">
161 <desc>Brakes</desc>
162 <binding>
163 <command>nasal</command>
164 <script>controls.applyBrakes(1, 0)</script>
165 </binding>
166 <mod-up>
167 <binding>
168 <command>nasal</command>
169 <script>controls.applyBrakes(0, 0)</script>
170 </binding>
171 </mod-up>
172 </button>
173
174 <button n="2">
175 <desc>Elevator trim up</desc>
176 <repeatable type="bool">true</repeatable>
177 <binding>
178 <command>nasal</command>
179 <script>controls.elevatorTrim(1)</script>
180 </binding>
181 </button>
182
183 <button n="3">
184 <desc>Elevator trim down</desc>
185 <repeatable type="bool">true</repeatable>
186 <binding>
187 <command>nasal</command>
188 <script>controls.elevatorTrim(-1)</script>
189 </binding>
190 </button>
191
192
193 </PropertyList>
194
195 <!-- end of joystick.xml -->