Debian Codegraph @

Input/Joysticks/template.xml

raw symbols SCIP
1 <?xml version="1.0" ?>
2
3 <PropertyList>
4
5 <!-- Joystick Configuration Template -->
6
7 <axis n="0">
8 <desc>Aileron</desc>
9 <direction>right</direction>
10 <binding>
11 <command>property-scale</command>
12 <property>/controls/flight/aileron</property>
13 <offset type="double">0.0</offset>
14 <factor type="double">1.0</factor>
15 <power type="int">1</power>
16 </binding>
17 </axis>
18
19 <axis n="1">
20 <desc>Elevator</desc>
21 <direction>down/forward</direction>
22 <binding>
23 <command>property-scale</command>
24 <property>/controls/flight/elevator</property>
25 <factor type="double">-1.0</factor>
26 <power type="int">1</power>
27 </binding>
28 </axis>
29
30 <axis n="2">
31 <desc>Rudder</desc>
32 <direction>right</direction>
33 <binding>
34 <command>property-scale</command>
35 <property>/controls/flight/rudder</property>
36 <factor type="double">1.0</factor>
37 <power type="int">1</power>
38 </binding>
39 </axis>
40
41 <axis n="3">
42 <desc>Throttle</desc>
43 <direction>forward</direction>
44 <binding>
45 <command>nasal</command>
46 <script>controls.throttleAxis()</script>
47 </binding>
48 </axis>
49
50 <axis n="4">
51 <desc>View Direction</desc>
52 <direction>left</direction>
53 <low>
54 <repeatable>true</repeatable>
55 <binding>
56 <command>nasal</command>
57 <script>view.panViewDir(1)</script>
58 </binding>
59 </low>
60 <high>
61 <repeatable>true</repeatable>
62 <binding>
63 <command>nasal</command>
64 <script>view.panViewDir(-1)</script>
65 </binding>
66 </high>
67 </axis>
68
69 <axis n="5">
70 <desc>View Elevation</desc>
71 <direction>upward</direction>
72 <low>
73 <repeatable>true</repeatable>
74 <binding>
75 <command>nasal</command>
76 <script>view.panViewPitch(1)</script>
77 </binding>
78 </low>
79 <high>
80 <repeatable>true</repeatable>
81 <binding>
82 <command>nasal</command>
83 <script>view.panViewPitch(-1)</script>
84 </binding>
85 </high>
86 </axis>
87
88 <button n="0">
89 <desc>View Cycle</desc>
90 <repeatable>false</repeatable>
91 <binding>
92 <command>nasal</command>
93 <script>view.stepView(1)</script>
94 </binding>
95 </button>
96
97 <button n="1">
98 <desc>Brakes</desc>
99 <binding>
100 <command>nasal</command>
101 <script>controls.applyBrakes(1)</script>
102 </binding>
103 <mod-up>
104 <binding>
105 <command>nasal</command>
106 <script>controls.applyBrakes(0)</script>
107 </binding>
108 </mod-up>
109 </button>
110
111 <button n="2">
112 <desc>Left Brake</desc>
113 <binding>
114 <command>nasal</command>
115 <script>controls.applyBrakes(1, -1)</script>
116 </binding>
117 <mod-up>
118 <binding>
119 <command>nasal</command>
120 <script>controls.applyBrakes(0, -1)</script>
121 </binding>
122 </mod-up>
123 </button>
124
125 <button n="3">
126 <desc>Right Brake</desc>
127 <binding>
128 <command>nasal</command>
129 <script>controls.applyBrakes(1, 1)</script>
130 </binding>
131 <mod-up>
132 <binding>
133 <command>nasal</command>
134 <script>controls.applyBrakes(0, 1)</script>
135 </binding>
136 </mod-up>
137 </button>
138
139 <button n="4">
140 <desc>Flaps Up</desc>
141 <repeatable>false</repeatable>
142 <binding>
143 <command>nasal</command>
144 <script>controls.flapsDown(-1)</script>
145 </binding>
146 <mod-up>
147 <binding>
148 <command>nasal</command>
149 <script>controls.flapsDown(0)</script>
150 </binding>
151 </mod-up>
152 </button>
153
154 <button n="5">
155 <desc>Flaps Down</desc>
156 <repeatable>false</repeatable>
157 <binding>
158 <command>nasal</command>
159 <script>controls.flapsDown(1)</script>
160 </binding>
161 <mod-up>
162 <binding>
163 <command>nasal</command>
164 <script>controls.flapsDown(0)</script>
165 </binding>
166 </mod-up>
167 </button>
168
169 <button n="6">
170 <desc>Elevator Trim Forward</desc>
171 <repeatable>true</repeatable>
172 <binding>
173 <command>nasal</command>
174 <script>controls.elevatorTrim(0.75)</script>
175 </binding>
176 </button>
177
178 <button n="7">
179 <desc>Elevator Trim Backward</desc>
180 <repeatable>true</repeatable>
181 <binding>
182 <command>nasal</command>
183 <script>controls.elevatorTrim(-0.75)</script>
184 </binding>
185 </button>
186
187 <button n="8">
188 <desc>Landing Gear Toggle</desc>
189 <repeatable>false</repeatable>
190 <binding>
191 <command>nasal</command>
192 <script>controls.gearToggle()</script>
193 </binding>
194 </button>
195
196 </PropertyList>
197
198 <!-- end of joystick.xml -->