Update the four axis joystick to the new controlls layout and fix a mistake in the...
[fg:toms-fgdata.git] / Input / Joysticks / Default / four-axis-joystick.xml
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>property-scale</command>
39    <property>/controls/engines/engine[0]/throttle</property>
40    <offset type="double">-1.0</offset>
41    <factor type="double">-0.5</factor>
42   </binding>
43   <binding>
44    <command>property-scale</command>
45    <property>/controls/engines/engine[1]/throttle</property>
46    <offset type="double">-1.0</offset>
47    <factor type="double">-0.5</factor>
48   </binding>
49   <binding>
50    <command>property-scale</command>
51    <property>/controls/engines/engine[2]/throttle</property>
52    <offset type="double">-1.0</offset>
53    <factor type="double">-0.5</factor>
54   </binding>
55   <binding>
56    <command>property-scale</command>
57    <property>/controls/engines/engine[3]/throttle</property>
58    <offset type="double">-1.0</offset>
59    <factor type="double">-0.5</factor>
60   </binding>
61   <binding>
62    <command>property-scale</command>
63    <property>/controls/engines/engine[4]/throttle</property>
64    <offset type="double">-1.0</offset>
65    <factor type="double">-0.5</factor>
66   </binding>
67   <binding>
68    <command>property-scale</command>
69    <property>/controls/engines/engine[5]/throttle</property>
70    <offset type="double">-1.0</offset>
71    <factor type="double">-0.5</factor>
72   </binding>
73   <binding>
74    <command>property-scale</command>
75    <property>/controls/engines/engine[6]/throttle</property>
76    <offset type="double">-1.0</offset>
77    <factor type="double">-0.5</factor>
78   </binding>
79   <binding>
80    <command>property-scale</command>
81    <property>/controls/engines/engine[7]/throttle</property>
82    <offset type="double">-1.0</offset>
83    <factor type="double">-0.5</factor>
84   </binding>
85  </axis>
86
87  <axis n="3">
88   <binding>
89    <command>property-scale</command>
90    <property>/controls/flight/rudder</property>
91    <power type="double">2</power>
92   </binding>
93  </axis>
94
95  <button n="0">
96   <desc>Brakes</desc>
97   <binding>
98    <command>property-assign</command>
99    <property>/controls/gear/wheel[0]/brake</property>
100    <value type="double">1.0</value>
101   </binding>
102   <binding>
103    <command>property-assign</command>
104    <property>/controls/gear/wheel[1]/brake</property>
105    <value type="double">1.0</value>
106   </binding>
107   <binding>
108    <command>property-assign</command>
109    <property>/controls/gear/wheel[2]/brake</property>
110    <value type="double">1.0</value>
111   </binding>
112   <mod-up>
113    <binding>
114     <command>property-assign</command>
115     <property>/controls/gear/wheel[0]/brake</property>
116     <value type="double">0.0</value>
117    </binding>
118    <binding>
119     <command>property-assign</command>
120     <property>/controls/gear/wheel[1]/brake</property>
121     <value type="double">0.0</value>
122    </binding>
123    <binding>
124     <command>property-assign</command>
125     <property>/controls/gear/wheel[2]/brake</property>
126     <value type="double">0.0</value>
127    </binding>
128   </mod-up>
129  </button>
130
131  <button n="1">
132   <desc>Elevator trim up</desc>
133   <repeatable type="bool">true</repeatable>
134   <binding>
135    <command>property-adjust</command>
136    <property>/controls/flight/elevator-trim</property>
137    <step type="double">0.001</step>
138   </binding>
139  </button>
140
141  <button n="2">
142   <desc>Elevator trim down</desc>
143   <repeatable type="bool">true</repeatable>
144   <binding>
145    <command>property-adjust</command>
146    <property>/controls/flight/elevator-trim</property>
147    <step type="double">-0.001</step>
148   </binding>
149  </button>
150
151 </PropertyList>
152
153 <!-- end of joystick.xml -->