Debian Codegraph @

Input/Joysticks/CH/Combatstick568.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4 ******************************************************************
5 * Re: Joystick xml codes Library project - open for contributi
6 * Postby N-SCOT ยป Sun Jan 08, 2017 12:42 pm
7 ******************************************************************
8 -->
9
10 <PropertyList>
11 <name type="string">CH COMBATSTICK USB</name>
12 <axis n="0">
13 <desc>Rudder on ground, aileron in flight</desc>
14 <!-- Implemented on-ground taxi patch by Sebastain Marque -->
15 <binding>
16 <condition>
17 <property>/gear/gear/wow</property>
18 </condition>
19 <command>property-scale</command>
20 <property>/controls/flight/rudder</property>
21 <squared type="bool">true</squared>
22 </binding>
23 <desc>Aileron</desc>
24 <dead-band type="double">0.02</dead-band>
25 <binding>
26 <condition>
27 <not>
28 <property>/gear/gear/wow</property>
29 </not>
30 </condition>
31 <command>property-scale</command>
32 <property>/controls/flight/aileron</property>
33 <offset type="double">0.0</offset>
34 <factor type="double">1.0</factor>
35 <tolerance type="double">0.0</tolerance>
36 <squared type="bool">true</squared>
37 <power type="double">2.0</power>
38 </binding>
39 </axis>
40 <axis n="1">
41 <desc type="string">Elevator</desc>
42 <binding>
43 <command type="string">property-scale</command>
44 <property type="string">/controls/flight/elevator</property>
45 <factor type="double">-1</factor>
46 <offset type="double">0</offset>
47 </binding>
48 </axis>
49 <axis n="2">
50 <desc type="string">Throttle</desc>
51 <binding>
52 <command type="string">nasal</command>
53 <script type="string">controls.throttleAxis();</script>
54 </binding>
55 </axis>
56 <axis n="3">
57 <desc type="string">View (horizontal)</desc>
58 <low>
59 <binding>
60 <command type="string">nasal</command>
61 <script type="string">setprop("/sim/current-view/goal-heading-offset-deg", getprop("/sim/current-view/goal-heading-offset-deg") + 30);</script>
62 </binding>
63 </low>
64 <high>
65 <binding>
66 <command type="string">nasal</command>
67 <script type="string">setprop("/sim/current-view/goal-heading-offset-deg", getprop("/sim/current-view/goal-heading-offset-deg") - 30);</script>
68 </binding>
69 </high>
70 </axis>
71 <axis n="4">
72 <desc type="string">View (vertical)</desc>
73 <low>
74 <binding>
75 <command type="string">nasal</command>
76 <script type="string">setprop("/sim/current-view/goal-pitch-offset-deg", getprop("/sim/current-view/goal-pitch-offset-deg") - 20);</script>
77 </binding>
78 </low>
79 <high>
80 <binding>
81 <command type="string">nasal</command>
82 <script type="string">setprop("/sim/current-view/goal-pitch-offset-deg", getprop("/sim/current-view/goal-pitch-offset-deg") + 20);</script>
83 </binding>
84 </high>
85 </axis>
86 <button>
87 <desc type="string">Trigger</desc>
88 <repeatable type="string">false</repeatable>
89 <binding>
90 <command type="string">nasal</command>
91 <script type="string">controls.trigger(1);</script>
92 </binding>
93 <mod-up>
94 <binding>
95 <command type="string">nasal</command>
96 <script type="string">controls.trigger(0);</script>
97 </binding>
98 </mod-up>
99 </button>
100 <button n="1">
101 <desc type="string">Brakes</desc>
102 <repeatable type="string">false</repeatable>
103 <binding>
104 <command type="string">nasal</command>
105 <script type="string">controls.applyBrakes(1);</script>
106 </binding>
107 <mod-up>
108 <binding>
109 <command type="string">nasal</command>
110 <script type="string">controls.applyBrakes(0);</script>
111 </binding>
112 </mod-up>
113 </button>
114 <button n="2">
115 <desc type="string">Gear Up</desc>
116 <repeatable type="string">false</repeatable>
117 <binding>
118 <command type="string">nasal</command>
119 <script type="string">controls.gearDown(-1);</script>
120 </binding>
121 <mod-up>
122 <binding>
123 <command type="string">nasal</command>
124 <script type="string">controls.gearDown(0);</script>
125 </binding>
126 </mod-up>
127 </button>
128 <button n="4">
129 <desc type="string">Propeller Fine</desc>
130 <binding>
131 <command type="string">nasal</command>
132 <script type="string">controls.adjPropeller(1);</script>
133 </binding>
134 <repeatable type="double">1</repeatable>
135 </button>
136 <button n="5">
137 <desc type="string">Mixture Rich</desc>
138 <binding>
139 <command type="string">nasal</command>
140 <script type="string">controls.adjMixture(1);</script>
141 </binding>
142 <repeatable type="double">1</repeatable>
143 </button>
144 <button n="6">
145 <desc type="string">Propeller Coarse</desc>
146 <binding>
147 <command type="string">nasal</command>
148 <script type="string">controls.adjPropeller(-1);</script>
149 </binding>
150 <repeatable type="double">1</repeatable>
151 </button>
152 <button n="7">
153 <desc type="string">Mixture Lean</desc>
154 <binding>
155 <command type="string">nasal</command>
156 <script type="string">controls.adjMixture(-1);</script>
157 </binding>
158 <repeatable type="double">1</repeatable>
159 </button>
160 </PropertyList>