Debian Codegraph @

Input/Joysticks/ThrustMaster/Top-Gun-Fox2-Pro-USB.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4 ************************************************************************
5 *
6 * Bindings or Thrustmaster Top Gun Fox 2 Pro USB joystick (see joysticks.xml in fgfsbase dir)
7 *
8 *
9 * Axis 0: ailerons
10 * Axis 1: elevator
11 * Axis 2: rudder (twistable stick)
12 * Axis 3: throttle
13 * Axis 4: Horizontal Hat
14 * Axis 5: Vertical Hat
15 *
16 * Button 0: (Trigger) elevator trim down
17 * Button 1: (yellow and black button) all brakes
18 * Button 2: (side button above trigger) gear up/down
19 * Button 3: (right button, next to yellow and black button) elevator trim up
20 * Button 4: (outside bottom button) flap up
21 * Button 5: (middle bottom button) center rudder
22 * Button 6: (inside bottom button) flap down
23 * Borrowed heavily from sidewinder.xml
24 * Thank you, sidewinder.xml!
25 ************************************************************************
26 -->
27
28 <PropertyList>
29 <name>Top Gun Fox 2 Pro </name>
30 <name>THRUSTMASTER Top Gun Fox 2 Pro </name>
31
32 <axis>
33 <number>
34 <unix>0</unix>
35 <windows>0</windows>
36 <mac>0</mac>
37 </number>
38 <desc>Aileron</desc>
39 <dead-band type="double">0.02</dead-band>
40 <binding>
41 <command>property-scale</command>
42 <property>/controls/flight/aileron</property>
43 <offset type="double">+0.0</offset>
44 <factor type="double">+1.0</factor>
45 </binding>
46 </axis>
47
48 <axis>
49 <number>
50 <unix>1</unix>
51 <windows>1</windows>
52 <mac>1</mac>
53 </number>
54 <desc>Elevator</desc>
55 <dead-band type="double">0.02</dead-band>
56 <binding>
57 <command>property-scale</command>
58 <property>/controls/flight/elevator</property>
59 <offset type="double">+0.0</offset>
60 <factor type="double">-1.0</factor>
61 </binding>
62 </axis>
63
64 <axis>
65 <number>
66 <unix>2</unix>
67 <windows>3</windows>
68 <mac>2</mac>
69 </number>
70 <desc>Rudder</desc>
71 <dead-band type="double">0.02</dead-band>
72 <binding>
73 <command>property-scale</command>
74 <property>/controls/flight/rudder</property>
75 <offset type="double">0.0</offset>
76 <factor type="double">1.0</factor>
77 </binding>
78 </axis>
79
80 <axis>
81 <desc>Throttle</desc>
82 <number>
83 <unix>3</unix>
84 <mac>3</mac>
85 <windows>2</windows>
86 </number>
87 <binding>
88 <command>nasal</command>
89 <script>controls.throttleAxis()</script>
90 </binding>
91 </axis>
92
93 <button n="0">
94 <desc>Elevator trim down</desc>
95 <repeatable type="bool">true</repeatable>
96 <binding>
97 <command>nasal</command>
98 <script>controls.elevatorTrim(0.75)</script>
99 </binding>
100 </button>
101
102 <button n="1">
103 <desc>Brakes</desc>
104 <binding>
105 <command>nasal</command>
106 <script>controls.applyBrakes(1)</script>
107 </binding>
108 <mod-up>
109 <binding>
110 <command>nasal</command>
111 <script>controls.applyBrakes(0)</script>
112 </binding>
113 </mod-up>
114 </button>
115
116 <button n="2">
117 <desc>Toggle gear</desc>
118 <repeatable>false</repeatable>
119 <binding>
120 <command>nasal</command>
121 <script>controls.gearToggle()</script>
122 </binding>
123 </button>
124
125 <button n="3">
126 <desc>Elevator trim up</desc>
127 <repeatable type="bool">true</repeatable>
128 <binding>
129 <command>nasal</command>
130 <script>controls.elevatorTrim(-0.75)</script>
131 </binding>
132 </button>
133
134 <button n="4">
135 <desc>Flaps up</desc>
136 <repeatable>false</repeatable>
137 <binding>
138 <command>nasal</command>
139 <script>controls.flapsDown(-1)</script>
140 </binding>
141 <mod-up>
142 <binding>
143 <command>nasal</command>
144 <script>controls.flapsDown(0)</script>
145 </binding>
146 </mod-up>
147 </button>
148
149 <button n="5">
150 <desc>Center rudder</desc>
151 <repeatable>false</repeatable>
152 <binding>
153 <command>property-adjust</command>
154 <property>/controls/flight/rudder</property>
155 <step type="double">0.0</step>
156 </binding>
157 </button>
158
159 <button n="6">
160 <desc>Flaps down</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 </PropertyList>
175
176 <!-- end of TGF2PROUSB.xml -->