Remove excess name tags
[fg:toms-fgdata.git] / Input / Joysticks / Saitek / X8-30.xml
1 <?xml version="1.0"?>
2
3 <!--
4 ************************************************************************
5 Setup for a CH-Flightstick compatible joystick with
6 stick, throttle, one digital hat, and four buttons.
7
8 Layout:
9   Axis 0: ailerons
10   Axis 1: elevator
11   Axis 2: throttle
12
13   Hat:
14     Axis 3: rudder
15     Axis 4: elevator trim
16
17   Button 0: brakes
18   Button 1: center rudder
19   Button 2: flaps up
20   Button 3: flaps down
21 ************************************************************************
22 -->
23
24 <PropertyList>
25
26  <name>Analog 3-axis 4-button 1-hat CHF joystick</name>
27
28
29  <axis n="0">
30   <desc>Aileron</desc>
31   <binding>
32    <command>property-scale</command>
33    <property>/controls/aileron</property>
34    <squared type="bool">true</squared>
35   </binding>
36  </axis>
37
38  <axis n="1">
39   <desc>Elevator</desc>
40   <binding>
41    <command>property-scale</command>
42    <property>/controls/elevator</property>
43    <factor type="double">-1.0</factor>
44    <squared type="bool">true</squared>
45   </binding>
46  </axis>
47
48  <axis n="2">
49   <desc>Throttle</desc>
50   <binding>
51    <command>property-scale</command>
52    <property>/controls/throttle[0]</property>
53    <offset type="double">-1.0</offset>
54    <factor type="double">-0.5</factor>
55   </binding>
56   <binding>
57    <command>property-scale</command>
58    <property>/controls/throttle[1]</property>
59    <offset type="double">-1.0</offset>
60    <factor type="double">-0.5</factor>
61   </binding>
62  </axis>
63
64  <axis n="3">
65   <desc>Rudder</desc>
66   <binding><command>null</command></binding>
67   <low>
68    <repeatable type="bool">true</repeatable>
69    <binding>
70     <command>property-adjust</command>
71     <property>/controls/rudder</property>
72     <step type="double">-0.05</step>
73    </binding>
74   </low>
75   <high>
76    <repeatable type="bool">true</repeatable>
77    <binding>
78     <command>property-adjust</command>
79     <property>/controls/rudder</property>
80     <step type="double">0.05</step>
81    </binding>
82   </high>
83  </axis>
84
85  <axis n="4">
86   <desc>Elevator trim</desc>
87   <binding><command>null</command></binding>
88   <low>
89    <repeatable type="bool">true</repeatable>
90    <binding>
91     <command>property-adjust</command>
92     <property>/controls/elevator-trim</property>
93     <step type="double">0.001</step>
94    </binding>
95   </low>
96   <high>
97    <repeatable type="bool">true</repeatable>
98    <binding>
99     <command>property-adjust</command>
100     <property>/controls/elevator-trim</property>
101     <step type="double">-0.001</step>
102    </binding>
103   </high>
104  </axis>
105
106  <button n="0">
107   <desc>Brakes</desc>
108   <binding>
109    <command>property-assign</command>
110    <property>/controls/brakes[0]</property>
111    <value type="double">1.0</value>
112   </binding>
113   <binding>
114    <command>property-assign</command>
115    <property>/controls/brakes[1]</property>
116    <value type="double">1.0</value>
117   </binding>
118   <binding>
119    <command>property-assign</command>
120    <property>/controls/brakes[2]</property>
121    <value type="double">1.0</value>
122   </binding>
123   <mod-up>
124    <binding>
125     <command>property-assign</command>
126     <property>/controls/brakes[0]</property>
127     <value type="double">0.0</value>
128    </binding>
129    <binding>
130     <command>property-assign</command>
131     <property>/controls/brakes[1]</property>
132     <value type="double">0.0</value>
133    </binding>
134    <binding>
135     <command>property-assign</command>
136     <property>/controls/brakes[2]</property>
137     <value type="double">0.0</value>
138    </binding>
139   </mod-up>
140  </button>
141
142  <button n="1">
143   <repeatable type="bool">false</repeatable>
144   <binding>
145    <desc>Center rudder</desc>
146    <command>property-assign</command>
147    <property>/controls/rudder</property>
148    <value type="double">0.0</value>
149   </binding>
150  </button>
151
152  <button n="2">
153   <repeatable type="bool">false</repeatable>
154   <binding>
155    <desc>Flaps up</desc>
156    <command>property-adjust</command>
157    <property>/controls/flaps</property>
158    <step type="double">-0.34</step>
159   </binding>
160  </button>
161
162  <button n="3">
163   <repeatable type="bool">false</repeatable>
164   <binding>
165    <desc>Flaps down</desc>
166    <command>property-adjust</command>
167    <property>/controls/flaps</property>
168    <step type="double">0.34</step>
169   </binding>
170  </button>
171
172 </PropertyList>
173
174 <!-- end of chf.xml -->