Debian Codegraph @

Input/Joysticks/Default/joystick.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4 ************************************************************************
5 Default joystick bindings.
6
7 Assume that we have a conventional, three-axis, three-button
8 joystick, and that the first button is the trigger.
9 ************************************************************************
10 $Id$
11 -->
12
13 <PropertyList>
14
15 <name>default</name>
16
17 <axis n="0">
18 <desc>Aileron</desc>
19 <binding>
20 <command>property-scale</command>
21 <property>/controls/flight/aileron</property>
22 <squared type="bool">true</squared>
23 </binding>
24 </axis>
25
26 <axis n="1">
27 <desc>Elevator</desc>
28 <binding>
29 <command>property-scale</command>
30 <property>/controls/flight/elevator</property>
31 <factor type="double">-1.0</factor>
32 <squared type="bool">true</squared>
33 </binding>
34 </axis>
35
36 <axis n="2">
37 <desc>Throttle</desc>
38 <binding>
39 <command>nasal</command>
40 <script>controls.throttleAxis()</script>
41 </binding>
42 </axis>
43
44 <button n="0">
45 <desc>Brakes</desc>
46 <binding>
47 <command>nasal</command>
48 <script>controls.applyBrakes(1)</script>
49 </binding>
50 <mod-up>
51 <binding>
52 <command>nasal</command>
53 <script>controls.applyBrakes(0)</script>
54 </binding>
55 </mod-up>
56 </button>
57
58 <button n="1">
59 <desc>Elevator trim up</desc>
60 <repeatable type="bool">true</repeatable>
61 <binding>
62 <command>nasal</command>
63 <script>controls.elevatorTrim(1)</script>
64 </binding>
65 </button>
66
67 <button n="2">
68 <desc>Elevator trim down</desc>
69 <repeatable type="bool">true</repeatable>
70 <binding>
71 <command>nasal</command>
72 <script>controls.elevatorTrim(-1)</script>
73 </binding>
74 </button>
75
76 </PropertyList>
77
78 <!-- end of joystick.xml -->