Debian Codegraph @

Input/Joysticks/Macally/istick-usb.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4 ************************************************************************
5 Setup for a MacALLY USB iStick joystick with
6 one stick, one wheel, 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 Axes 3 and 4
15
16 Button 0: brakes (front button)
17 Button 1: center rudder (side button)
18 Button 2: trim up
19 Button 3: trim down
20 ************************************************************************
21 -->
22
23 <PropertyList>
24
25 <name>MacALLY USB Joystick </name>
26
27 <axis>
28 <number>
29 <unix>0</unix>
30 <windows>0</windows>
31 <mac>0</mac>
32 </number>
33 <desc>Aileron</desc>
34 <dead-band type="double">0.02</dead-band>
35 <binding>
36 <command>property-scale</command>
37 <property>/controls/flight/aileron</property>
38 <offset type="double">+0.0</offset>
39 <factor type="double">+2.0</factor>
40 </binding>
41 </axis>
42
43 <axis>
44 <number>
45 <unix>1</unix>
46 <windows>1</windows>
47 <mac>1</mac>
48 </number>
49 <desc>Elevator</desc>
50 <dead-band type="double">0.02</dead-band>
51 <binding>
52 <command>property-scale</command>
53 <property>/controls/flight/elevator</property>
54 <offset type="double">+0.0</offset>
55 <factor type="double">-2.0</factor>
56 </binding>
57 </axis>
58
59 <axis>
60 <number>
61 <unix>2</unix>
62 <windows>2</windows>
63 <mac>2</mac>
64 </number>
65 <desc>Throttle</desc>
66 <!--
67 <binding>
68 <command>nasal</command>
69 <script>controls.throttleAxis()</script>
70 <offset type="double">+0.5</offset>
71 <factor type="double">-2.0</factor>
72 </binding>
73 -->
74 <binding>
75 <command>property-scale</command>
76 <property>/controls/engines/engine[0]/throttle</property>
77 <offset type="double">+0.5</offset>
78 <factor type="double">-2.0</factor>
79 </binding>
80 <binding>
81 <command>property-scale</command>
82 <property>/controls/engines/engine[1]/throttle</property>
83 <offset type="double">+0.5</offset>
84 <factor type="double">-2.0</factor>
85 </binding>
86 <binding>
87 <command>property-scale</command>
88 <property>/controls/engines/engine[2]/throttle</property>
89 <offset type="double">+0.5</offset>
90 <factor type="double">-2.0</factor>
91 </binding>
92 <binding>
93 <command>property-scale</command>
94 <property>/controls/engines/engine[3]/throttle</property>
95 <offset type="double">+0.5</offset>
96 <factor type="double">-2.0</factor>
97 </binding>
98 <binding>
99 <command>property-scale</command>
100 <property>/controls/engines/engine[4]/throttle</property>
101 <offset type="double">+0.5</offset>
102 <factor type="double">-2.0</factor>
103 </binding>
104 <binding>
105 <command>property-scale</command>
106 <property>/controls/engines/engine[5]/throttle</property>
107 <offset type="double">+0.5</offset>
108 <factor type="double">-2.0</factor>
109 </binding>
110 <binding>
111 <command>property-scale</command>
112 <property>/controls/engines/engine[6]/throttle</property>
113 <offset type="double">+0.5</offset>
114 <factor type="double">-2.0</factor>
115 </binding>
116 <binding>
117 <command>property-scale</command>
118 <property>/controls/engines/engine[7]/throttle</property>
119 <offset type="double">+0.5</offset>
120 <factor type="double">-2.0</factor>
121 </binding>
122 </axis>
123
124 <axis>
125 <number>
126 <unix>3</unix>
127 <windows>3</windows>
128 <mac>3</mac>
129 </number>
130 <desc>Rudder</desc>
131 <dead-band type="double">0.02</dead-band>
132 <binding>
133 <command>property-scale</command>
134 <property>/controls/flight/rudder</property>
135 <offset type="double">0.0</offset>
136 <factor type="double">1.0</factor>
137 </binding>
138
139 </axis>
140
141 <!--
142 <axis>
143 <number>
144 <unix>4</unix>
145 <windows>4</windows>
146 <mac>4</mac>
147 </number>
148 <desc>Rudder</desc>
149 <dead-band type="double">0.02</dead-band>
150 <binding>
151 <command>property-scale</command>
152 <property>/controls/flight/rudder</property>
153 <offset type="double">0.0</offset>
154 <factor type="double">1.0</factor>
155 </binding>
156 </axis>
157
158 -->
159
160 <button n="0">
161 <desc>Brakes</desc>
162 <binding>
163 <command>nasal</command>
164 <script>controls.applyBrakes(1)</script>
165 </binding>
166 <mod-up>
167 <binding>
168 <command>nasal</command>
169 <script>controls.applyBrakes(0)</script>
170 </binding>
171 </mod-up>
172 </button>
173
174 <button n="1">
175 <desc>Elevator trim up</desc>
176 <repeatable>true</repeatable>
177 <binding>
178 <command>property-adjust</command>
179 <property>/controls/flight/elevator-trim</property>
180 <step type="double">0.001</step>
181 </binding>
182 </button>
183
184 <button n="2">
185 <desc>Center rudder</desc>
186 <binding>
187 <command>property-assign</command>
188 <property>/controls/flight/rudder</property>
189 <value type="double">0.0</value>
190 </binding>
191 </button>
192
193 <button n="3">
194 <desc>Elevator trim down</desc>
195 <repeatable>true</repeatable>
196 <binding>
197 <command>property-adjust</command>
198 <property>/controls/flight/elevator-trim</property>
199 <step type="double">0.001</step>
200 </binding>
201 </button>
202
203
204 </PropertyList>
205
206 <!-- end of MAUSBJS.xml -->