Debian Codegraph @

Input/Joysticks/Trust/GM-2600.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2 <!--
3 _______________________________________ Layout _______________________________________
4
5 axis 0: aileron
6 axis 1: elevator
7 axis 2: throttle
8 axis 3: rudder
9 axis 4: unused
10 axis 5: view hat X
11 axis 6: view hat Y
12 ___________________________________ Customization ____________________________________
13
14 If you want to change some (or all) of the bindings, the recommended way is
15 to copy this file to your home directory, make your changes there, and include
16 it from your personal preferences.xml file. You can use any number lower than
17 1000 for n in <js-named n="0">. The lowest takes precedence in case of identical
18 names. You can include such a preferences.xml file with the ~~config option,
19 e.g. ~~config=$HOME/.fgfs/preferences.xml, and you can put that ~~config line
20 into your personal $HOME/.fgfsrc file.
21
22 <?xml version="1.0"?>
23 <PropertyList>
24 <input>
25 <js-named n="100">
26 <joysticks include="your-modified-copy.xml"/>
27 </js-named>
28 </input>
29 </PropertyList>
30
31 ____________________________________ References ______________________________________
32
33
34 Joysticks: $FG_ROOT/Docs/README.Joystick.html
35 Properties: see property browser (fgfs menu: "File"->"Browse internal properties")
36
37 Nasal: http://www.plausible.org/nasal/
38 Nasal examples: $FG_ROOT/Nasal/
39
40 ______________________________________________________________________________________
41
42 -->
43
44 <PropertyList>
45 <name>Padix Co. Ltd. Trust GM-2600 Joystick</name>
46 <name>5-Axis,12-Button with POV </name>
47
48 <axis>
49 <desc>aileron</desc>
50 <number>
51 <unix>0</unix>
52 </number>
53 <binding>
54 <command>property-scale</command>
55 <property>controls/flight/aileron</property>
56 <power type="int">2</power>
57 </binding>
58 </axis>
59
60 <axis>
61 <desc>elevator</desc>
62 <number>
63 <unix>1</unix>
64 </number>
65 <binding>
66 <command>property-scale</command>
67 <property>controls/flight/elevator</property>
68 <factor type="double">-1.0</factor>
69 <power type="int">2</power>
70 </binding>
71 </axis>
72
73 <axis>
74 <desc>throttle</desc>
75 <number>
76 <unix>2</unix>
77 </number>
78 <binding>
79 <command>nasal</command>
80 <script>controls.throttleAxis()</script>
81 </binding>
82 </axis>
83
84 <axis>
85 <desc>rudder</desc>
86 <number>
87 <unix>3</unix>
88 </number>
89 <binding>
90 <command>property-scale</command>
91 <property>controls/flight/rudder</property>
92 <factor type="double">1.0</factor>
93 <power type="int">2</power>
94 </binding>
95 </axis>
96
97 <axis>
98 <desc>View Direction</desc>
99 <number>
100 <unix>5</unix>
101 </number>
102 <low>
103 <repeatable>true</repeatable>
104 <binding>
105 <command>nasal</command>
106 <script>view.panViewDir(1)</script>
107 </binding>
108 </low>
109 <high>
110 <repeatable>true</repeatable>
111 <binding>
112 <command>nasal</command>
113 <script>view.panViewDir(-1)</script>
114 </binding>
115 </high>
116 </axis>
117
118 <axis>
119 <desc>View Elevation</desc>
120 <number>
121 <unix>6</unix>
122 </number>
123 <low>
124 <repeatable>true</repeatable>
125 <binding>
126 <command>nasal</command>
127 <script>view.panViewPitch(1)</script>
128 </binding>
129 </low>
130 <high>
131 <repeatable>true</repeatable>
132 <binding>
133 <command>nasal</command>
134 <script>view.panViewPitch(-1)</script>
135 </binding>
136 </high>
137 </axis>
138
139 <button n="0">
140 <name>Trigger</name>
141 <desc>brakes</desc>
142 <repeatable type="bool">false</repeatable>
143 <binding>
144 <command>nasal</command>
145 <script>controls.applyBrakes(1)</script>
146 </binding>
147 <mod-up>
148 <binding>
149 <command>nasal</command>
150 <script>controls.applyBrakes(0)</script>
151 </binding>
152 </mod-up>
153 </button>
154
155 <button n="1">
156 <name>Upper Left Button</name>
157 <desc>Look straight ahead</desc>
158 <repeatable type="bool">false</repeatable>
159 <binding>
160 <command>nasal</command>
161 <script>view.resetViewPos()</script>
162 </binding>
163 <binding>
164 <command>nasal</command>
165 <script>view.resetViewDir()</script>
166 </binding>
167 </button>
168
169 <button n="2">
170 <name>Upper Top Button</name>
171 <desc>flaps up</desc>
172 <repeatable type="bool">false</repeatable>
173 <binding>
174 <command>nasal</command>
175 <script>controls.flapsDown(-1)</script>
176 </binding>
177 <mod-up>
178 <binding>
179 <command>nasal</command>
180 <script>controls.flapsDown(0)</script>
181 </binding>
182 </mod-up>
183 </button>
184
185 <button n="3">
186 <name>Lower Top Button</name>
187 <desc>flaps down</desc>
188 <repeatable type="bool">false</repeatable>
189 <binding>
190 <command>nasal</command>
191 <script>controls.flapsDown(1)</script>
192 </binding>
193 <mod-up>
194 <binding>
195 <command>nasal</command>
196 <script>controls.flapsDown(0)</script>
197 </binding>
198 </mod-up>
199 </button>
200
201 <button n="4">
202 <name>Bottom Left Button</name>
203 <desc>gear down</desc>
204 <repeatable type="bool">false</repeatable>
205 <binding>
206 <command>nasal</command>
207 <script>controls.gearDown(1)</script>
208 </binding>
209 <mod-up>
210 <binding>
211 <command>nasal</command>
212 <script>controls.gearDown(0)</script>
213 </binding>
214 </mod-up>
215 </button>
216
217 <button n="5">
218 <name>Bottom Right Button</name>
219 <desc>gear up</desc>
220 <repeatable type="bool">false</repeatable>
221 <binding>
222 <command>nasal</command>
223 <script>controls.gearDown(-1)</script>
224 </binding>
225 <mod-up>
226 <binding>
227 <command>nasal</command>
228 <script>controls.gearDown(0)</script>
229 </binding>
230 </mod-up>
231 </button>
232
233 </PropertyList>