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</property>
51 <offset type="double">-1.0</offset>
52 <factor type="double">-0.5</factor>
59 <command>property-assign</command>
60 <property>/controls/brakes[0]</property>
61 <value type="double">1.0</value>
64 <command>property-assign</command>
65 <property>/controls/brakes[1]</property>
66 <value type="double">1.0</value>
69 <command>property-assign</command>
70 <property>/controls/brakes[2]</property>
71 <value type="double">1.0</value>
75 <command>property-assign</command>
76 <property>/controls/brakes[0]</property>
77 <value type="double">0.0</value>
80 <command>property-assign</command>
81 <property>/controls/brakes[1]</property>
82 <value type="double">0.0</value>
85 <command>property-assign</command>
86 <property>/controls/brakes[2]</property>
87 <value type="double">0.0</value>
93 <desc>Elevator trim up</desc>
94 <repeatable>true</repeatable>
96 <command>property-adjust</command>
97 <property>/controls/elevator-trim</property>
98 <step type="double">0.01</step>
103 <desc>Elevator trim down</desc>
104 <repeatable>true</repeatable>
106 <command>property-adjust</command>
107 <property>/controls/elevator-trim</property>
108 <step type="double">-0.01</step>
116 <!-- end of joysticks.xml -->