Debian Codegraph @

Input/Joysticks/Saitek/P880b.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2 <!--
3 Joystick binding definitions for Saitek P880 dual 2-axis analog 11 button controller.
4
5 This file is included by preferences.xml, and uses the context of its
6 inclusion point; that means that you need to prepend "/input/joysticks"
7 to all property names.
8
9 This file defines primary flight-control bindings as follow:
10
11 axis 0 (left-right): aileron
12 axis 1 (forward-backward): elevator
13 axis 2 (forward-backward): throttle
14 axis 3 (left-right): rudder
15 axis 4 (hat left-right): look left or right
16 axis 5 (hat forward-back): look ahead or behind
17 button 0: (1) trim rudder left
18 button 1: (2) trim nose down
19 button 2: (3) trim rudder right
20 button 3: (4) trim nose up
21 button 4: (5) retract flaps
22 button 5: (6) extend flaps
23 button 6: (7) (at front index finger place) left brake
24 button 7: (8) (at front index finger place) right brake
25 button 8: (9) aileron trim left
26 button 9: (10) aileron trim right
27 button 10:(11) illuminated red button (toggle langing gear).
28 hat left look left
29 hat right look right
30 hat back look behind
31 hat forward look forward
32 hat diagonal look diagonal
33 -->
34
35 <PropertyList>
36 <name>SAITEK P880</name>
37 <axis n="0">
38 <desc>Aileron</desc>
39 <binding>
40 <command>property-scale</command>
41 <property>/controls/flight/aileron</property>
42 </binding>
43 </axis>
44 <axis n="1">
45 <desc>Elevator</desc>
46 <binding>
47 <command>property-scale</command>
48 <property>/controls/flight/elevator</property>
49 <factor type="double">-1.0</factor>
50 </binding>
51 </axis>
52 <axis n="2">
53 <desc>Throttle</desc>
54 <high>
55 <repeatable type="bool">true</repeatable>
56 <binding>
57 <command>nasal</command>
58 <script>controls.adjThrottle(-1.0)</script>
59 </binding>
60 </high>
61 <low>
62 <repeatable type="bool">true</repeatable>
63 <binding>
64 <command>nasal</command>
65 <script>controls.adjThrottle(1.0)</script>
66 </binding>
67 </low>
68 </axis>
69 <axis n="3">
70 <desc>Rudder</desc>
71 <binding>
72 <command>property-scale</command>
73 <property>/controls/flight/rudder</property>
74 <offset type="double">0.0</offset>
75 <factor type="double">1.0</factor>
76 </binding>
77 </axis>
78 <axis n="4">
79 <desc>View Direction</desc>
80 <low>
81 <repeatable>true</repeatable>
82 <binding>
83 <command>property-adjust</command>
84 <property>/sim/current-view/goal-heading-offset-deg</property>
85 <step type="double">1.0</step>
86 </binding>
87 </low>
88 <high>
89 <repeatable>true</repeatable>
90 <binding>
91 <command>property-adjust</command>
92 <property>/sim/current-view/goal-heading-offset-deg</property>
93 <step type="double">-1.0</step>
94 </binding>
95 </high>
96 </axis>
97 <axis n="5">
98 <desc>View Elevation</desc>
99 <low>
100 <repeatable>true</repeatable>
101 <binding>
102 <command>property-adjust</command>
103 <property>/sim/current-view/goal-pitch-offset-deg</property>
104 <step type="double">1.0</step>
105 </binding>
106 </low>
107 <high>
108 <repeatable>true</repeatable>
109 <binding>
110 <command>property-adjust</command>
111 <property>/sim/current-view/goal-pitch-offset-deg</property>
112 <step type="double">-1.0</step>
113 </binding>
114 </high>
115 </axis>
116 <button n="6">
117 <desc>Apply left brakes</desc>
118 <repeatable>false</repeatable>
119 <binding>
120 <command>nasal</command>
121 <script>controls.applyBrakes(1,-1)</script>
122 </binding>
123 <mod-up>
124 <binding>
125 <command>nasal</command>
126 <script>controls.applyBrakes(0,-1)</script>
127 </binding>
128 </mod-up>
129 </button>
130 <button n="7">
131 <desc>Apply right brakes</desc>
132 <repeatable>false</repeatable>
133 <binding>
134 <command>nasal</command>
135 <script>controls.applyBrakes(1,1)</script>
136 </binding>
137 <mod-up>
138 <binding>
139 <command>nasal</command>
140 <script>controls.applyBrakes(0,1)</script>
141 </binding>
142 </mod-up>
143 </button>
144 <button n="8">
145 <desc>Aileron trim left</desc>
146 <repeatable type="bool">true</repeatable>
147 <binding>
148 <command>nasal</command>
149 <script>controls.aileronTrim(-0.75)</script>
150 </binding>
151 </button>
152 <button n="9">
153 <desc>Aileron trim right</desc>
154 <repeatable type="bool">true</repeatable>
155 <binding>
156 <command>nasal</command>
157 <script>controls.aileronTrim(0.75)</script>
158 </binding>
159 </button>
160 <button n="2">
161 <desc>Elevator trim down</desc>
162 <repeatable>true</repeatable>
163 <binding>
164 <command>nasal</command>
165 <script>controls.elevatorTrim(-0.75)</script>
166 </binding>
167 </button>
168 <button n="1">
169 <desc>Elevator trim up</desc>
170 <repeatable>true</repeatable>
171 <binding>
172 <command>nasal</command>
173 <script>controls.elevatorTrim(0.75)</script>
174 </binding>
175 </button>
176 <button n="0">
177 <desc>Rudder trim left</desc>
178 <repeatable type="bool">true</repeatable>
179 <binding>
180 <command>nasal</command>
181 <script>controls.rudderTrim(-0.75)</script>
182 </binding>
183 </button>
184 <button n="3">
185 <desc>Rudder trim right</desc>
186 <repeatable type="bool">true</repeatable>
187 <binding>
188 <command>nasal</command>
189 <script>controls.rudderTrim(0.75)</script>
190 </binding>
191 </button>
192 <button n="5">
193 <desc>Flaps down</desc>
194 <repeatable>false</repeatable>
195 <binding>
196 <command>nasal</command>
197 <script>controls.flapsDown(1)</script>
198 </binding>
199 <mod-up>
200 <binding>
201 <command>nasal</command>
202 <script>controls.flapsDown(0)</script>
203 </binding>
204 </mod-up>
205 </button>
206 <button n="4">
207 <desc>Flaps up</desc>
208 <repeatable>false</repeatable>
209 <binding>
210 <command>nasal</command>
211 <script>controls.flapsDown(-1)</script>
212 </binding>
213 <mod-up>
214 <binding>
215 <command>nasal</command>
216 <script>controls.flapsDown(0)</script>
217 </binding>
218 </mod-up>
219 </button>
220 <button n="10">
221 <desc>Landing Gear Toggle</desc>
222 <repeatable>false</repeatable>
223 <binding>
224 <command>nasal</command>
225 <script>controls.gearToggle()</script>
226 </binding>
227 </button>
228 </PropertyList>