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>
34 <squared>true</squared>
41 <command>property-scale</command>
42 <property>/controls/elevator</property>
43 <factor type="double">-1.0</factor>
44 <squared>true</squared>
51 <command>property-scale</command>
52 <property>/controls/throttle[0]</property>
53 <offset type="double">-1.0</offset>
54 <factor type="double">-0.5</factor>
57 <command>property-scale</command>
58 <property>/controls/throttle[1]</property>
59 <offset type="double">-1.0</offset>
60 <factor type="double">-0.5</factor>
67 <command>property-assign</command>
68 <property>/controls/brakes[0]</property>
69 <value type="double">1.0</value>
72 <command>property-assign</command>
73 <property>/controls/brakes[1]</property>
74 <value type="double">1.0</value>
77 <command>property-assign</command>
78 <property>/controls/brakes[2]</property>
79 <value type="double">1.0</value>
83 <command>property-assign</command>
84 <property>/controls/brakes[0]</property>
85 <value type="double">0.0</value>
88 <command>property-assign</command>
89 <property>/controls/brakes[1]</property>
90 <value type="double">0.0</value>
93 <command>property-assign</command>
94 <property>/controls/brakes[2]</property>
95 <value type="double">0.0</value>
101 <desc>Elevator trim up</desc>
102 <repeatable>true</repeatable>
104 <command>property-adjust</command>
105 <property>/controls/elevator-trim</property>
106 <step type="double">0.001</step>
111 <desc>Elevator trim down</desc>
112 <repeatable>true</repeatable>
114 <command>property-adjust</command>
115 <property>/controls/elevator-trim</property>
116 <step type="double">-0.001</step>
124 <!-- end of joysticks.xml -->