Debian Codegraph @

Input/Joysticks/Default/four-axis-joystick.xml

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