Debian Codegraph @

Input/Joysticks/Microsoft/sidewinder.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4 ************************************************************************
5 * Bindings for Microsoft SideWinder Joystick.
6 *
7 *
8 * Axis 0: ailerons
9 * Axis 1: elevator
10 * Axis 2: throttle
11 *
12 * Button 1: all brakes
13 * Button 2: left brake only
14 * Button 3: right brake only
15 * Button 4: elevator trim down .. can switch 4 and 5 to reverse
16 * Button 5: elevator trim up .. to your own preferences.
17 * Button 6: flap up ... Same with
18 * Button 7: flap down ... the flaps.
19
20 * Button 6: aileron ... hmmm.. see if this works
21 * Button 7: aileron ... to trim the ailerons
22 ************************************************************************
23 $Id$
24 -->
25
26 <PropertyList>
27
28 <name>Microsoft SideWinder Joystick</name>
29
30 <axis n="0">
31 <desc>Aileron</desc>
32 <binding>
33 <command>property-scale</command>
34 <property>/controls/flight/aileron</property>
35 <squared type="bool">true</squared>
36 </binding>
37 </axis>
38
39 <axis n="1">
40 <desc>Elevator</desc>
41 <binding>
42 <command>property-scale</command>
43 <property>/controls/flight/elevator</property>
44 <factor type="double">-1.0</factor>
45 <squared type="bool">true</squared>
46 </binding>
47 </axis>
48
49 <axis n="2">
50 <desc>Throttle</desc>
51 <binding>
52 <command>nasal</command>
53 <script>controls.throttleAxis()</script>
54 </binding>
55 </axis>
56
57 <button n="1">
58 <desc>Brakes</desc>
59 <binding>
60 <command>nasal</command>
61 <script>controls.applyBrakes(1)</script>
62 </binding>
63 <mod-up>
64 <binding>
65 <command>nasal</command>
66 <script>controls.applyBrakes(0)</script>
67 </binding>
68 </mod-up>
69 </button>
70
71
72 <button n="2">
73 <desc>Left brake</desc>
74 <binding>
75 <command>nasal</command>
76 <script>controls.applyBrakes(1, -1)</script>
77 </binding>
78 <mod-up>
79 <binding>
80 <command>nasal</command>
81 <script>controls.applyBrakes(0, -1)</script>
82 </binding>
83 </mod-up>
84 </button>
85
86 <button n="3">
87 <desc>Right brake</desc>
88 <binding>
89 <command>nasal</command>
90 <script>controls.applyBrakes(1, 1)</script>
91 </binding>
92 <mod-up>
93 <binding>
94 <command>nasal</command>
95 <script>controls.applyBrakes(0, 1)</script>
96 </binding>
97 </mod-up>
98 </button>
99
100 <button n="4">
101 <desc>Elevator trim down</desc>
102 <repeatable type="bool">true</repeatable>
103 <binding>
104 <command>property-adjust</command>
105 <property>/controls/flight/elevator-trim</property>
106 <step type="double">-0.002</step>
107 </binding>
108 </button>
109
110 <button n="5">
111 <desc>Elevator trim up</desc>
112 <repeatable type="bool">true</repeatable>
113 <binding>
114 <command>property-adjust</command>
115 <property>/controls/flight/elevator-trim</property>
116 <step type="double">0.002</step>
117 </binding>
118 </button>
119
120 <!--
121
122 <button n="6">
123 <desc>Flaps up</desc>
124 <repeatable>false</repeatable>
125 <binding>
126 <command>nasal</command>
127 <script>controls.flapsDown(-1)</script>
128 </binding>
129 <mod-up>
130 <binding>
131 <command>nasal</command>
132 <script>controls.flapsDown(0)</script>
133 </binding>
134 </mod-up>
135 </button>
136
137 <button n="7">
138 <desc>Flaps down</desc>
139 <repeatable>false</repeatable>
140 <binding>
141 <command>nasal</command>
142 <script>controls.flapsDown(1)</script>
143 </binding>
144 <mod-up>
145 <binding>
146 <command>nasal</command>
147 <script>controls.flapsDown(0)</script>
148 </binding>
149 </mod-up>
150 </button>
151
152 -->
153
154 <button n="6">
155 <desc>Aileron trimFlaps right</desc>
156 <repeatable>true</repeatable>
157 <binding>
158 <command>property-adjust</command>
159 <property>/controls/flight/aileron-trim</property>
160 <step type="double">-0.002</step>
161 </binding>
162 </button>
163
164 <button n="7">
165 <desc>Aileron trim right</desc>
166 <repeatable>true</repeatable>
167 <binding>
168 <command>property-adjust</command>
169 <property>/controls/flight/aileron-trim</property>
170 <step type="double">0.002</step>
171 </binding>
172 </button>
173
174 </PropertyList>