Debian Codegraph @

Input/Joysticks/Qware/qware-usb-joystick.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4 ************************************************************************
5
6 * Bindings for Qware 4-axis, 12 buttons joystick.
7 *
8 * Axis 0 : Ailerons
9 * Axis 1 : Elevator
10 * Axis 2 : Throttle
11 * Axes 3 : Rudder trim
12 * Axes 6 : View left/right
13 * Axes 7 : View up/down
14 *
15 * Button 1 : Trigger
16 * Button 2 : PTT - Push To Talk (FGcom)
17 * Button 3 : Elevator trim down
18 * Button 4 : Zoom out
19 * Button 5 : Elevator trim up
20 * Button 4 : Zoom in
21
22 ************************************************************************
23 -->
24
25 <PropertyList>
26
27 <name>5-Axis,12-Button with POV </name>
28
29 <axis n="0">
30 <desc>Aileron</desc>
31 <binding>
32 <command>property-scale</command>
33 <property>/controls/flight/aileron</property>
34 <power type="double">2</power>
35 </binding>
36 </axis>
37
38 <axis n="1">
39 <desc>Elevator</desc>
40 <binding>
41 <command>property-scale</command>
42 <property>/controls/flight/elevator</property>
43 <factor type="double">-1.0</factor>
44 <power type="double">2</power>
45 </binding>
46 </axis>
47
48 <axis n="2">
49 <desc>Throttle</desc>
50 <binding>
51 <command>nasal</command>
52 <script>controls.throttleAxis()</script>
53 </binding>
54 </axis>
55
56 <axis n="3">
57 <desc>Rudder</desc>
58 <binding>
59 <command>property-scale</command>
60 <property>/controls/flight/rudder</property>
61 <power type="double">2</power>
62 </binding>
63 </axis>
64
65 <axis n="6">
66 <desc>View (left/right)</desc>
67 <low>
68 <repeatable>true</repeatable>
69 <binding>
70 <command>property-adjust</command>
71 <property>/sim/current-view/goal-heading-offset-deg</property>
72 <step type="double">1.0</step>
73 </binding>
74 </low>
75 <high>
76 <repeatable>true</repeatable>
77 <binding>
78 <command>property-adjust</command>
79 <property>/sim/current-view/goal-heading-offset-deg</property>
80 <step type="double">-1.0</step>
81 </binding>
82 </high>
83 </axis>
84
85 <axis n="7">
86 <desc>View (up/down)</desc>
87 <low>
88 <repeatable>true</repeatable>
89 <binding>
90 <command>property-adjust</command>
91 <property>/sim/current-view/goal-pitch-offset-deg</property>
92 <step type="double">-1.0</step>
93 </binding>
94 </low>
95 <high>
96 <repeatable>true</repeatable>
97 <binding>
98 <command>property-adjust</command>
99 <property>/sim/current-view/goal-pitch-offset-deg</property>
100 <step type="double">1.0</step>
101 </binding>
102 </high>
103 </axis>
104
105 <!-- Button #1 -->
106 <button n="0">
107 <desc>Trigger</desc>
108 <binding>
109 <command>nasal</command>
110 <script>controls.trigger(1)</script>
111 </binding>
112 <mod-up>
113 <binding>
114 <command>nasal</command>
115 <script>controls.trigger(0)</script>
116 </binding>
117 </mod-up>
118 </button>
119
120 <!-- Button #2 -->
121 <button n="1">
122 <desc>Push To Talk (FGCom)</desc>
123 <binding>
124 <command>nasal</command>
125 <script>controls.ptt(1)</script>
126 </binding>
127 <mod-up>
128 <binding>
129 <command>nasal</command>
130 <script>controls.ptt(0)</script>
131 </binding>
132 </mod-up>
133 </button>
134
135 <!-- Button #3 -->
136 <button n="2">
137 <desc>Elevator trim down</desc>
138 <repeatable type="bool">true</repeatable>
139 <binding>
140 <command>nasal</command>
141 <script>controls.elevatorTrim(-1)</script>
142 </binding>
143 </button>
144
145 <!-- Button #4 -->
146 <button n="3">
147 <desc>Zoom out</desc>
148 <repeatable>true</repeatable>
149 <binding>
150 <command>property-adjust</command>
151 <property>/sim/current-view/field-of-view</property>
152 <step type="double">0.3</step>
153 <max>179</max>
154 </binding>
155 </button>
156
157 <!-- Button #5 -->
158 <button n="4">
159 <desc>Elevator trim up</desc>
160 <repeatable type="bool">true</repeatable>
161 <binding>
162 <command>nasal</command>
163 <script>controls.elevatorTrim(1)</script>
164 </binding>
165 </button>
166
167 <!-- Button #6 -->
168 <button n="5">
169 <desc>Zoom in</desc>
170 <repeatable>true</repeatable>
171 <binding>
172 <command>property-adjust</command>
173 <property>/sim/current-view/field-of-view</property>
174 <step type="double">-0.3</step>
175 <min>1</min>
176 </binding>
177 </button>
178
179 </PropertyList>