Add the Mega World USB Game Controllers joystick from Andrea Vezzali
This commit is contained in:
parent
3ebf27978b
commit
5ec08f65db
1 changed files with 121 additions and 0 deletions
121
Input/Joysticks/MegaWorld/USB-Game-Controllers.xml
Normal file
121
Input/Joysticks/MegaWorld/USB-Game-Controllers.xml
Normal file
|
@ -0,0 +1,121 @@
|
|||
<?xml version="1.0"?>
|
||||
<!-- Maintainer: Andrea Vezzali -->
|
||||
<!--
|
||||
************************************************************************
|
||||
* Bindings for Mega World USB Game Controllers joystick
|
||||
*
|
||||
*
|
||||
* Axis 0: ailerons
|
||||
* Axis 1: elevator
|
||||
* Axis 2: throttle
|
||||
* Axis 3 (hat): view direction
|
||||
* Axis 4 (hat): view elevation
|
||||
*
|
||||
* Button 0: all brakes
|
||||
* Button 1: view cicle
|
||||
* Button 2: zoom-in
|
||||
* Button 3: zoom-out
|
||||
*
|
||||
************************************************************************-->
|
||||
<PropertyList>
|
||||
<name>Mega World USB Game Controllers</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()</script>
|
||||
</binding>
|
||||
</axis>
|
||||
<axis n="3">
|
||||
<desc>View Direction</desc>
|
||||
<low>
|
||||
<repeatable type="bool">true</repeatable>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>view.panViewDir(1)</script>
|
||||
</binding>
|
||||
</low>
|
||||
<high>
|
||||
<repeatable type="bool">true</repeatable>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>view.panViewDir(-1)</script>
|
||||
</binding>
|
||||
</high>
|
||||
</axis>
|
||||
<axis n="4">
|
||||
<desc>View Elevation</desc>
|
||||
<low>
|
||||
<repeatable type="bool">true</repeatable>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>view.panViewPitch(1)</script>
|
||||
</binding>
|
||||
</low>
|
||||
<high>
|
||||
<repeatable type="bool">true</repeatable>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>view.panViewPitch(-1)</script>
|
||||
</binding>
|
||||
</high>
|
||||
</axis>
|
||||
<button n="0">
|
||||
<desc>Brakes</desc>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>
|
||||
interpolate("/controls/gear/brake-left", 1, 0.075);
|
||||
interpolate("/controls/gear/brake-right", 1, 0.075)
|
||||
</script>
|
||||
</binding>
|
||||
<mod-up>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>
|
||||
interpolate("/controls/gear/brake-left", 0, 0.075);
|
||||
interpolate("/controls/gear/brake-right", 0, 0.075)
|
||||
</script>
|
||||
</binding>
|
||||
</mod-up>
|
||||
</button>
|
||||
<button n="1">
|
||||
<repeatable>false</repeatable>
|
||||
<binding>
|
||||
<command>view-cycle</command>
|
||||
</binding>
|
||||
</button>
|
||||
<button n="2">
|
||||
<desc>Zoom in</desc>
|
||||
<repeatable type="bool">true</repeatable>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>view.decrease(1)</script>
|
||||
</binding>
|
||||
</button>
|
||||
<button n="3">
|
||||
<desc>Zoom out</desc>
|
||||
<repeatable type="bool">true</repeatable>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>view.increase(1)</script>
|
||||
</binding>
|
||||
</button>
|
||||
</PropertyList>
|
Loading…
Add table
Reference in a new issue