3 Joystick binding definitions.
5 This file is included by preferences.xml, and uses the context of its
6 inclusion point; that means that you need to prepend "/input/joysticks"
9 This file defines primary flight-control bindings for a simple
10 three-axis, three-button joystick, as follow:
12 axis 0 (left-right): aileron
13 axis 1 (forward-backward): elevator
14 axis 2 (slider): throttle
15 button 0 (trigger): brakes
19 If you have a more sophisticated joystick, there might be more axes
20 available; on my joystick, axis 2 is actually a twist axis (usually
21 for the rudder), while axis 3 is the throttle. There are also two
22 axes for the hat switch, and several more buttons.
32 <command>property-scale</command>
33 <property>/controls/aileron</property>
40 <command>property-scale</command>
41 <property>/controls/elevator</property>
42 <factor type="double">-1.0</factor>
49 <command>property-scale</command>
50 <property>/controls/throttle[0]</property>
51 <offset type="double">-1.0</offset>
52 <factor type="double">-0.5</factor>
55 <command>property-scale</command>
56 <property>/controls/throttle[1]</property>
57 <offset type="double">-1.0</offset>
58 <factor type="double">-0.5</factor>
65 <command>property-assign</command>
66 <property>/controls/brakes[0]</property>
67 <value type="double">1.0</value>
70 <command>property-assign</command>
71 <property>/controls/brakes[1]</property>
72 <value type="double">1.0</value>
75 <command>property-assign</command>
76 <property>/controls/brakes[2]</property>
77 <value type="double">1.0</value>
81 <command>property-assign</command>
82 <property>/controls/brakes[0]</property>
83 <value type="double">0.0</value>
86 <command>property-assign</command>
87 <property>/controls/brakes[1]</property>
88 <value type="double">0.0</value>
91 <command>property-assign</command>
92 <property>/controls/brakes[2]</property>
93 <value type="double">0.0</value>
99 <desc>Elevator trim up</desc>
100 <repeatable>true</repeatable>
102 <command>property-adjust</command>
103 <property>/controls/elevator-trim</property>
104 <step type="double">0.001</step>
109 <desc>Elevator trim down</desc>
110 <repeatable>true</repeatable>
112 <command>property-adjust</command>
113 <property>/controls/elevator-trim</property>
114 <step type="double">-0.001</step>
122 <!-- end of joysticks.xml -->