Debian Codegraph @

Input/Joysticks/ThrustMaster/Warthog/Throttle/harrier.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!-- left throttle: control thrust vector -->
4
5 <PropertyList>
6 <nasal>
7 <script>
8 var thrust_display = func {
9 var thv = getprop("/controls/engines/engine/mixture");
10 popup("Thrust vector %d", thv * 120 - 20 + 0.5);
11 }
12 </script>
13 </nasal>
14
15 <axis n="2">
16 <name>Right Throttle</name>
17 <desc>throttle</desc>
18 <binding>
19 <command>nasal</command>
20 <script>controls.throttleAxis()</script>
21 </binding>
22 </axis>
23
24 <axis n="3">
25 <name>Left Throttle</name>
26 <desc>thrust vector</desc>
27 <binding>
28 <command>nasal</command>
29 <script>
30 controls.mixtureAxis();
31 thrust_display();
32 </script>
33 </binding>
34 </axis>
35 </PropertyList>