Added custom configuration for Microsoft SideWinder Force Feedback
[fg:toms-fgdata.git] / Input / Joysticks / Microsoft / sidewinder-force-feed.xml
1 <?xml version="1.0"?>
2
3 <!--
4 ************************************************************************
5 * Bindings for Microsoft SideWinder Force Feed joystick.
6 *
7 *
8 * Axis 0: ailerons
9 * Axis 1: elevator
10 * Axis 2 (slider): throttle
11 * Axis 3 (twist): rudder
12 * Axes 6 and 7 (hat): view direction
13 *
14 * Button 1: all brakes
15 * Button 2: elevator trim up
16 * Button 3: elevator trim down
17 * Button 4: right brake only
18 * Button 5: flap down
19 * Button 6: left brake only
20 * Button 7: flap up
21 ************************************************************************
22 -->
23
24 <PropertyList>
25
26  <name>Microsoft SideWinder Force Feed</name>
27
28  <axis n="0">
29   <desc>Aileron</desc>
30   <binding>
31    <command>property-scale</command>
32    <property>/controls/aileron</property>
33    <squared type="bool">true</squared>
34   </binding>
35  </axis>
36
37  <axis n="1">
38   <desc>Elevator</desc>
39   <binding>
40    <command>property-scale</command>
41    <property>/controls/elevator</property>
42    <factor type="double">-1.0</factor>
43    <squared type="bool">true</squared>
44   </binding>
45  </axis>
46
47  <axis n="2">
48   <desc>Throttle</desc>
49   <binding>
50    <command>property-scale</command>
51    <property>/controls/throttle[0]</property>
52    <offset type="double">-1.0</offset>
53    <factor type="double">-0.5</factor>
54   </binding>
55   <binding>
56    <command>property-scale</command>
57    <property>/controls/throttle[1]</property>
58    <offset type="double">-1.0</offset>
59    <factor type="double">-0.5</factor>
60   </binding>
61  </axis>
62
63  <axis n="3">
64   <desc>Rudder</desc>
65   <binding>
66    <command>property-scale</command>
67    <property>/controls/rudder</property>
68    <factor type="double">1.0</factor>
69   </binding>
70  </axis>
71
72   <axis n="6">
73    <desc>View Direction</desc>
74    <low>
75     <repeatable>true</repeatable>
76     <binding>
77      <command>property-adjust</command>
78      <property>/sim/current-view/goal-heading-offset-deg</property>
79      <step type="double">1.0</step>
80     </binding>
81    </low>
82    <high>
83     <repeatable>true</repeatable>
84     <binding>
85      <command>property-adjust</command>
86      <property>/sim/current-view/goal-heading-offset-deg</property>
87      <step type="double">-1.0</step>
88     </binding>
89    </high>
90   </axis>
91
92   <axis n="7">
93    <desc>View Elevation</desc>
94    <low>
95     <repeatable>true</repeatable>
96     <binding>
97      <command>property-adjust</command>
98      <property>/sim/current-view/goal-pitch-offset-deg</property>
99      <step type="double">1.0</step>
100     </binding>
101    </low>
102    <high>
103     <repeatable>true</repeatable>
104     <binding>
105      <command>property-adjust</command>
106      <property>/sim/current-view/goal-pitch-offset-deg</property>
107      <step type="double">-1.0</step>
108     </binding>
109    </high>
110   </axis>
111
112  <button n="1">
113   <desc>Brakes</desc>
114   <binding>
115    <command>property-assign</command>
116    <property>/controls/brakes[0]</property>
117    <value type="double">1.0</value>
118   </binding>
119   <binding>
120    <command>property-assign</command>
121    <property>/controls/brakes[1]</property>
122    <value type="double">1.0</value>
123   </binding>
124   <binding>
125    <command>property-assign</command>
126    <property>/controls/brakes[2]</property>
127    <value type="double">1.0</value>
128   </binding>
129   <mod-up>
130    <binding>
131     <command>property-assign</command>
132     <property>/controls/brakes[0]</property>
133     <value type="double">0.0</value>
134    </binding>
135    <binding>
136     <command>property-assign</command>
137     <property>/controls/brakes[1]</property>
138     <value type="double">0.0</value>
139    </binding>
140    <binding>
141     <command>property-assign</command>
142     <property>/controls/brakes[2]</property>
143     <value type="double">0.0</value>
144    </binding>
145   </mod-up>
146  </button>
147
148  <button n="2">
149   <desc>Elevator trim up</desc>
150   <repeatable type="bool">true</repeatable>
151   <binding>
152    <command>property-adjust</command>
153    <property>/controls/elevator-trim</property>
154    <step type="double">0.001</step>
155   </binding>
156  </button>
157
158  <button n="3">
159   <desc>Elevator trim down</desc>
160   <repeatable type="bool">true</repeatable>
161   <binding>
162    <command>property-adjust</command>
163    <property>/controls/elevator-trim</property>
164    <step type="double">-0.001</step>
165   </binding>
166  </button>
167
168  <button n="5">
169   <desc>Flaps down</desc>
170   <repeatable>false</repeatable>
171   <binding>
172    <command>property-adjust</command>
173    <property>/controls/flaps</property>
174    <step type="double">-0.34</step>
175   </binding>
176  </button>
177
178  <button n="7">
179   <desc>Flaps up</desc>
180   <repeatable>false</repeatable>
181   <binding>
182    <command>property-adjust</command>
183    <property>/controls/flaps</property>
184    <step type="double">0.34</step>
185   </binding>
186  </button>
187
188  <button n="4">
189   <desc>Right brake</desc>
190   <binding>
191    <command>property-assign</command>
192    <property>/controls/brakes[1]</property>
193    <value type="double">1.0</value>
194   </binding>
195   <mod-up>
196    <binding>
197     <command>property-assign</command>
198     <property>/controls/brakes[1]</property>
199     <value type="double">0.0</value>
200    </binding>
201   </mod-up>
202  </button>
203
204  <button n="6">
205   <desc>Left brake</desc>
206   <binding>
207    <command>property-assign</command>
208    <property>/controls/brakes[0]</property>
209    <value type="double">1.0</value>
210   </binding>
211   <mod-up>
212    <binding>
213     <command>property-assign</command>
214     <property>/controls/brakes[0]</property>
215     <value type="double">0.0</value>
216    </binding>
217   </mod-up>
218  </button>
219
220 </PropertyList>