Debian Codegraph @

Input/Joysticks/Saitek/Cyborg-3d-Rumble-Force.xml

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