Debian Codegraph @

Input/Joysticks/MegaWorld/USB-Game-Controllers.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2 <!-- Maintainer: Andrea Vezzali -->
3 <!--
4 ************************************************************************
5 * Bindings for Mega World USB Game Controllers joystick
6 *
7 *
8 * Axis 0: ailerons
9 * Axis 1: elevator
10 * Axis 2: throttle
11 * Axis 3 (hat): view direction
12 * Axis 4 (hat): view elevation
13 *
14 * Button 0: all brakes
15 * Button 1: view cicle
16 * Button 2: zoom-in
17 * Button 3: zoom-out
18 *
19 ************************************************************************-->
20 <PropertyList>
21 <name>Mega World USB Game Controllers</name>
22 <axis n="0">
23 <desc>Aileron</desc>
24 <binding>
25 <command>property-scale</command>
26 <property>/controls/flight/aileron</property>
27 <squared type="bool">true</squared>
28 </binding>
29 </axis>
30 <axis n="1">
31 <desc>Elevator</desc>
32 <binding>
33 <command>property-scale</command>
34 <property>/controls/flight/elevator</property>
35 <factor type="double">-1.0</factor>
36 <squared type="bool">true</squared>
37 </binding>
38 </axis>
39 <axis n="2">
40 <desc>Throttle</desc>
41 <binding>
42 <command>nasal</command>
43 <script>controls.throttleAxis()</script>
44 </binding>
45 </axis>
46 <axis n="3">
47 <desc>View Direction</desc>
48 <low>
49 <repeatable type="bool">true</repeatable>
50 <binding>
51 <command>nasal</command>
52 <script>view.panViewDir(1)</script>
53 </binding>
54 </low>
55 <high>
56 <repeatable type="bool">true</repeatable>
57 <binding>
58 <command>nasal</command>
59 <script>view.panViewDir(-1)</script>
60 </binding>
61 </high>
62 </axis>
63 <axis n="4">
64 <desc>View Elevation</desc>
65 <low>
66 <repeatable type="bool">true</repeatable>
67 <binding>
68 <command>nasal</command>
69 <script>view.panViewPitch(1)</script>
70 </binding>
71 </low>
72 <high>
73 <repeatable type="bool">true</repeatable>
74 <binding>
75 <command>nasal</command>
76 <script>view.panViewPitch(-1)</script>
77 </binding>
78 </high>
79 </axis>
80 <button n="0">
81 <desc>Brakes</desc>
82 <binding>
83 <command>nasal</command>
84 <script>controls.applyBrakes(1)</script>
85 </binding>
86 <mod-up>
87 <binding>
88 <command>nasal</command>
89 <script>controls.applyBrakes(0)</script>
90 </binding>
91 </mod-up>
92 </button>
93 <button n="1">
94 <repeatable>false</repeatable>
95 <binding>
96 <command>nasal</command>
97 <script>view.stepView(1)</script>
98 </binding>
99 </button>
100 <button n="2">
101 <desc>Zoom in</desc>
102 <repeatable type="bool">true</repeatable>
103 <binding>
104 <command>nasal</command>
105 <script>view.decrease(1)</script>
106 </binding>
107 </button>
108 <button n="3">
109 <desc>Zoom out</desc>
110 <repeatable type="bool">true</repeatable>
111 <binding>
112 <command>nasal</command>
113 <script>view.increase(1)</script>
114 </binding>
115 </button>
116 </PropertyList>