2002-07-04 15:52:15 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
2003-06-29 08:33:59 +00:00
|
|
|
<!--
|
2002-07-04 15:52:15 +00:00
|
|
|
************************************************************************
|
|
|
|
Default joystick bindings.
|
|
|
|
|
|
|
|
Assume that we have a conventional, three-axis, three-button
|
|
|
|
joystick, and that the first button is the trigger.
|
|
|
|
************************************************************************
|
2003-06-29 08:33:59 +00:00
|
|
|
$Id$
|
2002-07-04 15:52:15 +00:00
|
|
|
-->
|
|
|
|
|
|
|
|
<PropertyList>
|
|
|
|
|
2005-06-11 14:18:40 +00:00
|
|
|
<name>default</name>
|
|
|
|
|
2002-07-04 15:52:15 +00:00
|
|
|
<axis n="0">
|
|
|
|
<desc>Aileron</desc>
|
|
|
|
<binding>
|
|
|
|
<command>property-scale</command>
|
2003-04-01 12:41:12 +00:00
|
|
|
<property>/controls/flight/aileron</property>
|
2002-07-04 15:52:15 +00:00
|
|
|
<squared type="bool">true</squared>
|
|
|
|
</binding>
|
|
|
|
</axis>
|
|
|
|
|
|
|
|
<axis n="1">
|
|
|
|
<desc>Elevator</desc>
|
|
|
|
<binding>
|
|
|
|
<command>property-scale</command>
|
2003-04-01 12:41:12 +00:00
|
|
|
<property>/controls/flight/elevator</property>
|
2002-07-04 15:52:15 +00:00
|
|
|
<factor type="double">-1.0</factor>
|
|
|
|
<squared type="bool">true</squared>
|
|
|
|
</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-06-29 08:33:59 +00:00
|
|
|
</binding>
|
2002-07-04 15:52:15 +00:00
|
|
|
</axis>
|
|
|
|
|
|
|
|
<button n="0">
|
|
|
|
<desc>Brakes</desc>
|
|
|
|
<binding>
|
2004-01-12 17:49:33 +00:00
|
|
|
<command>property-assign</command>
|
|
|
|
<property>/controls/gear/brake-left</property>
|
|
|
|
<value type="double">1.0</value>
|
2002-07-04 15:52:15 +00:00
|
|
|
</binding>
|
2003-12-26 19:53:22 +00:00
|
|
|
<binding>
|
2004-01-12 17:49:33 +00:00
|
|
|
<command>property-assign</command>
|
|
|
|
<property>/controls/gear/brake-right</property>
|
|
|
|
<value type="double">1.0</value>
|
|
|
|
</binding>
|
|
|
|
<mod-up>
|
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
|
|
|
<property>/controls/gear/brake-left</property>
|
|
|
|
<value type="double">0.0</value>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
|
|
|
<property>/controls/gear/brake-right</property>
|
|
|
|
<value type="double">0.0</value>
|
2002-07-04 15:52:15 +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>
|
2002-07-04 15:52:15 +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>
|
2002-07-04 15:52:15 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
</PropertyList>
|
|
|
|
|
|
|
|
<!-- end of joystick.xml -->
|