Debian Codegraph @

Input/Joysticks/Logitech/wingman-attack.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4 ************************************************************************
5 Logitech Wingman Attack joystick bindings.
6
7 3 Axis joystick with 4 buttons.
8 Connects through a gameport.
9
10 Roberto Inzerillo 2011
11 [email protected]
12
13 Bindings:
14
15 Axis 0: ailerons
16 Axis 1: elevator
17 Axis 2 (slider): throttle
18
19 Button 0 (01 trigger): all brakes
20 Button 1 (02): elevator trim up
21 Button 2 (03): elevator trim down
22 Button 3 (04): all brakes
23
24 ************************************************************************
25 -->
26
27 <PropertyList>
28
29 <name>Logitech Wingman Attack</name>
30
31 <axis n="0">
32 <desc>Aileron</desc>
33 <binding>
34 <command>property-scale</command>
35 <property>/controls/flight/aileron</property>
36 <squared type="bool">true</squared>
37 </binding>
38 </axis>
39
40 <axis n="1">
41 <desc>Elevator</desc>
42 <binding>
43 <command>property-scale</command>
44 <property>/controls/flight/elevator</property>
45 <factor type="double">-1.0</factor>
46 <squared type="bool">true</squared>
47 </binding>
48 <dead-band type="double">0.1</dead-band>
49 </axis>
50
51 <axis n="2">
52 <desc>Throttle</desc>
53 <direction>forward</direction>
54 <binding>
55 <command>nasal</command>
56 <script>controls.throttleAxis()</script>
57 </binding>
58 </axis>
59
60
61 <button n="0">
62 <desc>Brakes</desc>
63 <binding>
64 <command>nasal</command>
65 <script>controls.applyBrakes(1)</script>
66 </binding>
67 <mod-up>
68 <binding>
69 <command>nasal</command>
70 <script>controls.applyBrakes(0)</script>
71 </binding>
72 </mod-up>
73 </button>
74
75
76 <button n="1">
77 <desc>Elevator trim up</desc>
78 <repeatable>true</repeatable>
79 <binding>
80 <command>nasal</command>
81 <script>controls.elevatorTrim(1)</script>
82 </binding>
83 </button>
84
85 <button n="2">
86 <desc>Elevator trim down</desc>
87 <repeatable>true</repeatable>
88 <binding>
89 <command>nasal</command>
90 <script>controls.elevatorTrim(-1)</script>
91 </binding>
92 </button>
93
94 <button n="3">
95 <desc>Brakes</desc>
96 <binding>
97 <command>nasal</command>
98 <script>controls.applyBrakes(1)</script>
99 </binding>
100 <mod-up>
101 <binding>
102 <command>nasal</command>
103 <script>controls.applyBrakes(0)</script>
104 </binding>
105 </mod-up>
106 </button>
107
108
109
110 </PropertyList>
111
112 <!-- end of wingman-attack.xml -->
113