2003-07-23 08:45:04 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
************************************************************************
|
|
|
|
Default 4-axis joystick bindings.
|
|
|
|
|
|
|
|
Assume that we have a conventional, four-axis, three/four-button
|
|
|
|
joystick, and that the first button is the trigger.
|
|
|
|
************************************************************************
|
|
|
|
-->
|
|
|
|
|
|
|
|
<PropertyList>
|
|
|
|
|
|
|
|
<name>Analog 4-axis 4-button joystick</name>
|
|
|
|
|
|
|
|
<axis n="0">
|
|
|
|
<desc>Aileron</desc>
|
|
|
|
<binding>
|
|
|
|
<command>property-scale</command>
|
2003-12-22 14:57:53 +00:00
|
|
|
<property>/controls/flight/aileron</property>
|
|
|
|
<power type="double">2</power>
|
2003-07-23 08:45:04 +00:00
|
|
|
</binding>
|
|
|
|
</axis>
|
|
|
|
|
|
|
|
<axis n="1">
|
|
|
|
<desc>Elevator</desc>
|
|
|
|
<binding>
|
|
|
|
<command>property-scale</command>
|
2003-12-22 14:57:53 +00:00
|
|
|
<property>/controls/flight/elevator</property>
|
2003-07-23 08:45:04 +00:00
|
|
|
<factor type="double">-1.0</factor>
|
2003-12-22 14:57:53 +00:00
|
|
|
<power type="double">2</power>
|
2003-07-23 08:45:04 +00:00
|
|
|
</binding>
|
|
|
|
</axis>
|
|
|
|
|
|
|
|
<axis n="2">
|
|
|
|
<desc>Throttle</desc>
|
|
|
|
<binding>
|
|
|
|
<command>property-scale</command>
|
2003-12-22 14:57:53 +00:00
|
|
|
<property>/controls/engines/engine[0]/throttle</property>
|
2003-07-23 08:45:04 +00:00
|
|
|
<offset type="double">-1.0</offset>
|
|
|
|
<factor type="double">-0.5</factor>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>property-scale</command>
|
2003-12-22 14:57:53 +00:00
|
|
|
<property>/controls/engines/engine[1]/throttle</property>
|
|
|
|
<offset type="double">-1.0</offset>
|
|
|
|
<factor type="double">-0.5</factor>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>property-scale</command>
|
|
|
|
<property>/controls/engines/engine[2]/throttle</property>
|
|
|
|
<offset type="double">-1.0</offset>
|
|
|
|
<factor type="double">-0.5</factor>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>property-scale</command>
|
|
|
|
<property>/controls/engines/engine[3]/throttle</property>
|
|
|
|
<offset type="double">-1.0</offset>
|
|
|
|
<factor type="double">-0.5</factor>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>property-scale</command>
|
|
|
|
<property>/controls/engines/engine[4]/throttle</property>
|
|
|
|
<offset type="double">-1.0</offset>
|
|
|
|
<factor type="double">-0.5</factor>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>property-scale</command>
|
|
|
|
<property>/controls/engines/engine[5]/throttle</property>
|
|
|
|
<offset type="double">-1.0</offset>
|
|
|
|
<factor type="double">-0.5</factor>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>property-scale</command>
|
|
|
|
<property>/controls/engines/engine[6]/throttle</property>
|
|
|
|
<offset type="double">-1.0</offset>
|
|
|
|
<factor type="double">-0.5</factor>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>property-scale</command>
|
|
|
|
<property>/controls/engines/engine[7]/throttle</property>
|
2003-07-23 08:45:04 +00:00
|
|
|
<offset type="double">-1.0</offset>
|
|
|
|
<factor type="double">-0.5</factor>
|
|
|
|
</binding>
|
|
|
|
</axis>
|
|
|
|
|
|
|
|
<axis n="3">
|
|
|
|
<binding>
|
|
|
|
<command>property-scale</command>
|
2003-12-22 14:57:53 +00:00
|
|
|
<property>/controls/flight/rudder</property>
|
|
|
|
<power type="double">2</power>
|
2003-07-23 08:45:04 +00:00
|
|
|
</binding>
|
|
|
|
</axis>
|
|
|
|
|
|
|
|
<button n="0">
|
|
|
|
<desc>Brakes</desc>
|
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
2003-12-22 14:57:53 +00:00
|
|
|
<property>/controls/gear/wheel[0]/brake</property>
|
2003-07-23 08:45:04 +00:00
|
|
|
<value type="double">1.0</value>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
2003-12-22 14:57:53 +00:00
|
|
|
<property>/controls/gear/wheel[1]/brake</property>
|
2003-07-23 08:45:04 +00:00
|
|
|
<value type="double">1.0</value>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
2003-12-22 14:57:53 +00:00
|
|
|
<property>/controls/gear/wheel[2]/brake</property>
|
2003-07-23 08:45:04 +00:00
|
|
|
<value type="double">1.0</value>
|
|
|
|
</binding>
|
|
|
|
<mod-up>
|
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
2003-12-22 14:57:53 +00:00
|
|
|
<property>/controls/gear/wheel[0]/brake</property>
|
2003-07-23 08:45:04 +00:00
|
|
|
<value type="double">0.0</value>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
2003-12-22 14:57:53 +00:00
|
|
|
<property>/controls/gear/wheel[1]/brake</property>
|
2003-07-23 08:45:04 +00:00
|
|
|
<value type="double">0.0</value>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
2003-12-22 14:57:53 +00:00
|
|
|
<property>/controls/gear/wheel[2]/brake</property>
|
2003-07-23 08:45:04 +00:00
|
|
|
<value type="double">0.0</value>
|
|
|
|
</binding>
|
|
|
|
</mod-up>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button n="1">
|
|
|
|
<desc>Elevator trim up</desc>
|
|
|
|
<repeatable type="bool">true</repeatable>
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
2003-12-22 14:57:53 +00:00
|
|
|
<property>/controls/flight/elevator-trim</property>
|
2003-07-23 08:45:04 +00:00
|
|
|
<step type="double">0.001</step>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button n="2">
|
|
|
|
<desc>Elevator trim down</desc>
|
|
|
|
<repeatable type="bool">true</repeatable>
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
2003-12-22 14:57:53 +00:00
|
|
|
<property>/controls/flight/elevator-trim</property>
|
2003-07-23 08:45:04 +00:00
|
|
|
<step type="double">-0.001</step>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
</PropertyList>
|
|
|
|
|
|
|
|
<!-- end of joystick.xml -->
|