Debian Codegraph @

Input/Joysticks/Genius/f23.xml

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