Debian Codegraph @

Input/Joysticks/ThrustMaster/T-Flight-Stick-X.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4 Bindings for THRUSTMASTER T.Flight Stick X based on presets from the constructor.
5 by Joffrey Paris
6 -->
7
8 <PropertyList>
9 <name type="string">T.Flight Stick X</name>
10 <name type="string">Thrustmaster T.Flight Stick X</name>
11
12 <axis n="0">
13 <desc>Aileron</desc>
14 <binding>
15 <command>property-scale</command>
16 <property>/controls/flight/aileron</property>
17 <squared type="bool">true</squared>
18 </binding>
19 </axis>
20
21 <axis n="1">
22 <desc>Elevator</desc>
23 <binding>
24 <command>property-scale</command>
25 <property>/controls/flight/elevator</property>
26 <factor type="double">-1.0</factor>
27 <squared type="bool">true</squared>
28 </binding>
29 </axis>
30
31 <axis>
32 <number>
33 <windows>2</windows>
34 <unix>3</unix>
35 </number>
36 <desc>Increase/Reduce Throttle</desc>
37 <binding>
38 <command>nasal</command>
39 <script>controls.throttleAxis()</script>
40 </binding>
41 </axis>
42
43 <axis>
44 <number>
45 <windows>3</windows>
46 <unix>2</unix>
47 </number>
48 <desc>Rudder Left/Right</desc>
49 <binding>
50 <command>property-scale</command>
51 <property>/controls/flight/rudder</property>
52 <factor type="double">1.0</factor>
53 </binding>
54 </axis>
55
56 <axis>
57 <number>
58 <windows>6</windows>
59 <unix>4</unix>
60 </number>
61 <desc>View Direction</desc>
62 <low>
63 <repeatable>true</repeatable>
64 <binding>
65 <command>property-adjust</command>
66 <property>/sim/current-view/goal-heading-offset-deg</property>
67 <step type="double">2.0</step>
68 </binding>
69 </low>
70 <high>
71 <repeatable>true</repeatable>
72 <binding>
73 <command>property-adjust</command>
74 <property>/sim/current-view/goal-heading-offset-deg</property>
75 <step type="double">-2.0</step>
76 </binding>
77 </high>
78 </axis>
79
80 <axis>
81 <number>
82 <windows>7</windows>
83 </number>
84 <desc>View Elevation</desc>
85 <low>
86 <repeatable>true</repeatable>
87 <binding>
88 <command>property-adjust</command>
89 <property>/sim/current-view/goal-pitch-offset-deg</property>
90 <step type="double">-2.0</step>
91 </binding>
92 </low>
93 <high>
94 <repeatable>true</repeatable>
95 <binding>
96 <command>property-adjust</command>
97 <property>/sim/current-view/goal-pitch-offset-deg</property>
98 <step type="double">2.0</step>
99 </binding>
100 </high>
101 </axis>
102
103 <axis>
104 <number>
105 <unix>5</unix>
106 </number>
107 <desc>View Elevation</desc>
108 <low>
109 <repeatable>true</repeatable>
110 <binding>
111 <command>property-adjust</command>
112 <property>/sim/current-view/goal-pitch-offset-deg</property>
113 <step type="double">2.0</step>
114 </binding>
115 </low>
116 <high>
117 <repeatable>true</repeatable>
118 <binding>
119 <command>property-adjust</command>
120 <property>/sim/current-view/goal-pitch-offset-deg</property>
121 <step type="double">-2.0</step>
122 </binding>
123 </high>
124 </axis>
125
126 <button n="0">
127 <desc>Brakes</desc>
128 <binding>
129 <command>nasal</command>
130 <script>controls.applyBrakes(1)</script>
131 </binding>
132 <mod-up>
133 <binding>
134 <command>nasal</command>
135 <script>controls.applyBrakes(0)</script>
136 </binding>
137 </mod-up>
138 </button>
139
140 <button n="1">
141 <desc>Change View</desc>
142 <binding>
143 <command>nasal</command>
144 <script>view.stepView(1)</script>
145 </binding>
146 </button>
147
148 <button n="2">
149 <desc>Trim Nose Up</desc>
150 <repeatable type="bool">true</repeatable>
151 <binding>
152 <command>nasal</command>
153 <script>controls.elevatorTrim(1)</script>
154 </binding>
155 </button>
156
157 <button n="3">
158 <desc>Trim Nose Down</desc>
159 <repeatable type="bool">true</repeatable>
160 <binding>
161 <command>nasal</command>
162 <script>controls.elevatorTrim(-1)</script>
163 </binding>
164 </button>
165
166 <button n="4">
167 <desc>Extend Flaps Incrementally</desc>
168 <repeatable>false</repeatable>
169 <binding>
170 <command>nasal</command>
171 <script>controls.flapsDown(1)</script>
172 </binding>
173 <mod-up>
174 <binding>
175 <command>nasal</command>
176 <script>controls.flapsDown(0)</script>
177 </binding>
178 </mod-up>
179 </button>
180
181 <button n="5">
182 <desc>Retract Flaps Incrementally</desc>
183 <repeatable>false</repeatable>
184 <binding>
185 <command>nasal</command>
186 <script>controls.flapsDown(-1)</script>
187 </binding>
188 <mod-up>
189 <binding>
190 <command>nasal</command>
191 <script>controls.flapsDown(0)</script>
192 </binding>
193 </mod-up>
194 </button>
195
196 <button n="7">
197 <desc>Landing gear Up/Down</desc>
198 <repeatable>false</repeatable>
199 <binding>
200 <command>nasal</command>
201 <script>controls.gearToggle()</script>
202 </binding>
203 </button>
204
205 </PropertyList>
206
207 <!-- end of T.Flight Stick X.xml -->