If you want to try it, just replace Inputs/Joysticks/Default/joystick.xml with this new joystick.xml
- Code: Select all
<?xml version="1.0"?>
<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>
<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>
<button n="0">
<desc>Trigger</desc>
<binding>
<command>nasal</command>
<script>
setprop("/controls/armament/trigger", 1);
</script>
</binding>
<mod-up>
<binding>
<command>nasal</command>
<script>
setprop("/controls/armament/trigger", 0);
</script>
</binding>
</mod-up>
</button>
<button n="1">
<desc>Increase flaps</desc>
<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="2">
<desc>Decrease flaps</desc>
<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="3">
<desc>Move rudder left</desc>
<repeatable type="bool">true</repeatable>
<binding>
<command>property-adjust</command>
<property>/controls/flight/rudder</property>
<step type="double">-0.03</step>
</binding>
</button>
<button n="4">
<desc>Move rudder right</desc>
<repeatable type="bool">true</repeatable>
<binding>
<command>property-adjust</command>
<property>/controls/flight/rudder</property>
<step type="double">0.03</step>
</binding>
</button>
<button n="5">
<desc>Increase elevator trim</desc>
<repeatable type="bool">true</repeatable>
<binding>
<command>property-adjust</command>
<property>/controls/flight/elevator-trim</property>
<step type="double">0.01</step>
</binding>
</button>
<button n="6">
<desc>Decrease elevator trim</desc>
<repeatable type="bool">true</repeatable>
<binding>
<command>property-adjust</command>
<property>/controls/flight/elevator-trim</property>
<step type="double">-0.01</step>
</binding>
</button>
<button n="7">
<desc>Gear Up</desc>
<binding>
<command>nasal</command>
<script>controls.gearDown(-1)</script>
</binding>
<mod-up>
<binding>
<command>nasal</command>
<script>controls.gearDown(0)</script>
</binding>
</mod-up>
</button>
<button n="8">
<desc>Gear down</desc>
<binding>
<command>nasal</command>
<script>controls.gearDown(1)</script>
</binding>
<mod-up>
<binding>
<command>nasal</command>
<script>controls.gearDown(0)</script>
</binding>
</mod-up>
</button>
<button n="9">
<desc>Toggle speedbrake</desc>
<binding>
<command>property-toggle</command>
<property>/controls/flight/speedbrake</property>
</binding>
</button>
<button n="10">
<desc>Center aileron, elevator, and rudder</desc>
<binding>
<command>nasal</command>
<script>controls.centerFlightControls()</script>
</binding>
</button>
</PropertyList>
Details on the configuration:
