All pastes #974413 Raw Edit

Mine

public text v1 · immutable
·published 2008-04-06 19:44 UTC
rendered paste body
<?xml version="1.0"?>

<!--
************************************************************************
Default joystick bindings.

Assume that we have a conventional, three-axis, three-button
joystick, and that the first button is the trigger.
************************************************************************
$Id: joystick.xml,v 1.6 2005/06/11 14:18:40 mfranz Exp $
-->

<PropertyList>

 <name>default</name>

 <axis n="0">
  <desc>Aileron</desc>
  <binding>
   <command>property-scale</command>
   <property>/controls/flight/aileron</property>
   <squared type="bool">true</squared>
  </binding>
 </axis>

 <axis n="1">
  <desc>Elevator</desc>
  <dead-band type="double">0.0</dead-band>
  <binding>
   <command>property-scale</command>
   <property>/controls/flight/elevator</property>
   <factor type="double">-1</factor>
   <squared type="bool">false</squared>
  </binding>

 </axis>

 <axis n="2">
  <desc>Throttle</desc>
  <binding>
   <command>property-scale</command>
   <property>/controls/engines/engine[0]/throttle</property>
   <offset type="double">-1.043</offset>
   <factor type="double">-0.5</factor>
  </binding>
  <binding>
   <command>property-scale</command>
   <property>/controls/engines/engine[1]/throttle</property>
   <offset type="double">-1.043</offset>
   <factor type="double">-0.5</factor>
  </binding>
 </axis>
 
 <axis n="3">
  <desc>Rudder</desc>
  <binding>
   <command>property-scale</command>
   <property>/controls/flight/rudder</property>
   <factor type="double">-1</factor>
   <squared type="bool">true</squared>
  </binding>
 </axis>
 

 <button n="1">
  <desc>Test1</desc>
  <binding>
   <command>nasal</command>
     <script>A10weapons.release()</script>
  </binding>
 </button>

 <!--<button n="2">
  <desc>Test2</desc>
  <binding>
   <command>nasal</command>
     <script>nav_scripts.test_button(2)</script>
  </binding>
 </button>-->

 <button n="3">
  <desc>Brakes</desc>
  <binding>
   <command>property-assign</command>
   <property>/controls/gear/brake-left</property>
   <value type="double">1.0</value>
  </binding>
  <binding>
   <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>
   </binding>
  </mod-up>
 </button>

 <button n="4">
  <desc>Reset View</desc>
  <binding>
   <command>nasal</command>
   <script>view.resetView()</script>
  </binding>
 </button>

  <button n="5">
   <name>e</name>
   <desc>Fire GAU-8/A cannon</desc>
    <binding>
     <command>nasal</command>
     <script>A10weapons.fire_gau8a()</script>
    </binding>
   <mod-up>
    <binding>
     <command>nasal</command>
     <script>A10weapons.cfire_gau8a()</script>
    </binding>
   </mod-up>
  </button>

 <button n="6">
  <desc>Elevator trim up</desc>
  <repeatable type="bool">true</repeatable>
  <binding>
   <command>nasal</command>
   <script>controls.elevatorTrim(0.5)</script>
  </binding>
 </button>
 


 <button n="8">
  <desc>Elevator trim down</desc>
  <repeatable type="bool">true</repeatable>
  <binding>
   <command>nasal</command>
   <script>controls.elevatorTrim(-0.5)</script>
  </binding>
 </button>

<!--flaps-->

 <button n="19">
  <desc>Increase flaps.</desc>
  <repeatable>false</repeatable>
  <binding>
   <command>nasal</command>
   <script>controls.flapsDown(1)</script>
  </binding>
  <mod-up>
   <binding>
    <command>nasal</command>
    <script>controls.flapsDown(0)</script>
   </binding>
  </mod-up>
 </button>

 <button n="20">
  <desc>Decrease flaps.</desc>
  <repeatable>false</repeatable>
  <binding>
   <command>nasal</command>
   <script>controls.flapsDown(-1)</script>
  </binding>
  <mod-up>
   <binding>
    <command>nasal</command>
    <script>controls.flapsDown(0)</script>
   </binding>
  </mod-up>
 </button>



 <!-- View Direction Hat -->

 <button n="13">
  <desc>View Direction</desc>
  <repeatable>true</repeatable>
  <binding>
    <command>nasal</command>
    <script>view.panViewDir(1)</script>
   </binding>
  <mod-up>
   <binding>
    <command>nasal</command>
    <script>view.panViewDir(0)</script>
   </binding>
  </mod-up>
 </button>

 <button n="11">
  <desc>View Direction</desc>
   <repeatable>true</repeatable>
   <binding>
    <command>nasal</command>
    <script>view.panViewDir(-1)</script>
   </binding>
  <mod-up>
   <binding>
    <command>nasal</command>
    <script>view.panViewDir(0)</script>
   </binding>
  </mod-up>
 </button>

 <button n="12">
  <desc>View Elevation</desc>
   <repeatable>true</repeatable>
   <binding>
    <command>nasal</command>
    <script>view.panViewPitch(1)</script>
   </binding>
  <mod-up>
   <binding>
    <command>nasal</command>
    <script>view.panViewDir(0)</script>
   </binding>
  </mod-up>
 </button>

 <button n="10">
  <desc>View Elevation</desc>
   <repeatable>true</repeatable>
   <binding>
    <command>nasal</command>
    <script>view.panViewPitch(-1)</script>
   </binding>
  <mod-up>
   <binding>
    <command>nasal</command>
    <script>view.panViewDir(0)</script>
   </binding>
  </mod-up>
 </button>

</PropertyList>

<!-- end of joystick.xml -->