by EGQK1 » Wed Feb 29, 2012 11:14 am
hi all
would anyone care to correct my homework please
<?xml version="1.0" encoding="utf-8"?>
<!--
************************************************************************
* Bindings for Microsoft SideWinder Joystick.
*
*
* Axis 0: ailerons
* Axis 1: elevator
* Axis 2: throttle
*
* Button 1: guns
* Button 1+2: cannon
* Button 2: brake
* Button 3: left rudder
* Button 4: right rudder
* Button 5: aileron right trim.
* Button 6: elevator down trim
* Button 7: aileron left trim
* Button 8: elevator up trim
************************************************************************
$Id$
-->
<PropertyList>
<name>Microsoft SideWinder Joystick</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>
<binding>
<command>property-scale</command>
<property>/controls/flight/elevator</property>
<factor type="double">-1.0</factor>
<squared type="bool">true</squared>
</binding>
</axis>
<axis n="2">
<desc>Throttle</desc>
<binding>
<command>nasal</command>
<script>controls.throttleAxis(1)</script>
</binding>
</axis>
<button n="2">
<desc>Brakes</desc>
<binding>
<command>nasal</command>
<script>controls.applyBrakes(1)</script>
</binding>
<mod-up>
<binding>
<command>nasal</command>
<script>controls.applyBrakes(0)</script>
</binding>
</mod-up>
</button>
<button n="1">
<desc> trigger guns</desc>
<binding>
<command>nasal</command>
<script>controls.armament.trigger.guns(1, -1)</script>
</binding>
<mod-up>
<binding>
<command>nasal</command>
<script>controls.armament.trigger.guns(0, -1)</script>
</binding>
</mod-up>
</button>
<button n="1+2">
<desc>trigger cannon</desc>
<binding>
<command>nasal</command>
<script>controls.armament.trigger.cannon(1,-1)</script>
</binding>
<mod-up>
<binding>
<command>nasal</command>
<script>controls.armament.trigger.cannon(0,-1)</script>
</binding>
</mod-up>
</button>
<button n="3">
<desc>left rudder</desc>
<binding>
<command>nasal</command>
<script>controls.flight.left rudder(1, 1)</script>
</binding>
<mod-up>
<binding>
<command>nasal</command>
<script>controls.flight.left rudder(0, 1)</script>
</binding>
</mod-up>
</button>
<button n="4">
<desc>right rudder</desc>
<binding>
<command>nasal</command>
<script>controls.flight.right rudder(1, 1)</script>
</binding>
<mod-up>
<binding>
<command>nasal</command>
<script>controls.flight.right rudder(0, 1)</script>
</binding>
</mod-up>
</button>
<button n="5">
<desc>trim aileron right</desc>
<binding>
<command>nasal</command>
<script>controls.flight.airelon right(1, 0.15)</script>
</binding>
<mod-up>
<binding>
<command>nasal</command>
<script>controls.flight.airelon right(0, 0.15)</script>
</binding>
</mod-up>
</button>
<button n="6">
<desc>trim elevator down</desc>
<binding>
<command>nasal</command>
<script>controls.flight.elevator down(1, 0.15)</script>
</binding>
<mod-up>
<binding>
<command>nasal</command>
<script>controls.flight.elevator down(0, 0.15)</script>
</binding>
</mod-up>
</button>
<button n="7">
<desc>trim aileron left</desc>
<binding>
<command>nasal</command>
<script>controls.flight.aileron left(1, 0.15)</script>
</binding>
<mod-up>
<binding>
<command>nasal</command>
<script>controls.flight.aileron left(0, 0.15)</script>
</binding>
</mod-up>
</button>
<button n="8">
<desc>trim elevator up</desc>
<binding>
<command>nasal</command>
<script>controls.flight.elevator up(1, 0.15)</script>
</binding>
<mod-up>
<binding>
<command>nasal</command>
<script>controls.flight.elevator up(0, 0.15)</script>
</binding>
</mod-up>
</button>
</PropertyList>
as you can clearly see I have verry little idear of what I am doing ! but I am trying, some times very
EGQK1