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>
|
2003-12-26 19:53:22 +00:00
|
|
|
<command>nasal</command>
|
|
|
|
<script>controls.throttleAxis()</script>
|
2003-07-23 08:45:04 +00:00
|
|
|
</binding>
|
|
|
|
</axis>
|
|
|
|
|
|
|
|
<axis n="3">
|
2006-10-21 11:27:58 +00:00
|
|
|
<desc>Rudder</desc>
|
2003-07-23 08:45:04 +00:00
|
|
|
<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>
|
2006-03-01 18:17:26 +00:00
|
|
|
<command>nasal</command>
|
|
|
|
<script>controls.applyBrakes(1)</script>
|
2004-01-12 17:49:33 +00:00
|
|
|
</binding>
|
|
|
|
<mod-up>
|
|
|
|
<binding>
|
2006-03-01 18:17:26 +00:00
|
|
|
<command>nasal</command>
|
|
|
|
<script>controls.applyBrakes(0)</script>
|
2003-07-23 08:45:04 +00:00
|
|
|
</binding>
|
|
|
|
</mod-up>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button n="1">
|
|
|
|
<desc>Elevator trim up</desc>
|
|
|
|
<repeatable type="bool">true</repeatable>
|
|
|
|
<binding>
|
2003-12-26 19:53:22 +00:00
|
|
|
<command>nasal</command>
|
|
|
|
<script>controls.elevatorTrim(1)</script>
|
2003-07-23 08:45:04 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button n="2">
|
|
|
|
<desc>Elevator trim down</desc>
|
|
|
|
<repeatable type="bool">true</repeatable>
|
|
|
|
<binding>
|
2003-12-26 19:53:22 +00:00
|
|
|
<command>nasal</command>
|
|
|
|
<script>controls.elevatorTrim(-1)</script>
|
2003-07-23 08:45:04 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
</PropertyList>
|
|
|
|
|
|
|
|
<!-- end of joystick.xml -->
|