1
0
Fork 0
fgdata/Input/Joysticks/CH/Combatstick568.xml
puffergas cf88bf433c Add five joystick xml files.
Added the below files:
SwitchPanel.xml
Combatstick568.xml
Honeycomb-Aeronautical-Alpha-Flight-Controls.xml
g25-racing-wheel.xml
T-Rudder.xml
These files were posted on the FlightGear forum.
2021-03-06 14:36:49 +01:00

160 lines
4.9 KiB
XML

<?xml version="1.0"?>
<!--
******************************************************************
* Re: Joystick xml codes Library project - open for contributi
* Postby N-SCOT » Sun Jan 08, 2017 12:42 pm
******************************************************************
-->
<PropertyList>
<name type="string">CH COMBATSTICK USB</name>
<axis n="0">
<desc>Rudder on ground, aileron in flight</desc>
<!-- Implemented on-ground taxi patch by Sebastain Marque -->
<binding>
<condition>
<property>/gear/gear/wow</property>
</condition>
<command>property-scale</command>
<property>/controls/flight/rudder</property>
<squared type="bool">true</squared>
</binding>
<desc>Aileron</desc>
<dead-band type="double">0.02</dead-band>
<binding>
<condition>
<not>
<property>/gear/gear/wow</property>
</not>
</condition>
<command>property-scale</command>
<property>/controls/flight/aileron</property>
<offset type="double">0.0</offset>
<factor type="double">1.0</factor>
<tolerance type="double">0.0</tolerance>
<squared type="bool">true</squared>
<power type="double">2.0</power>
</binding>
</axis>
<axis n="1">
<desc type="string">Elevator</desc>
<binding>
<command type="string">property-scale</command>
<property type="string">/controls/flight/elevator</property>
<factor type="double">-1</factor>
<offset type="double">0</offset>
</binding>
</axis>
<axis n="2">
<desc type="string">Throttle</desc>
<binding>
<command type="string">nasal</command>
<script type="string">controls.throttleAxis();</script>
</binding>
</axis>
<axis n="3">
<desc type="string">View (horizontal)</desc>
<low>
<binding>
<command type="string">nasal</command>
<script type="string">setprop("/sim/current-view/goal-heading-offset-deg", getprop("/sim/current-view/goal-heading-offset-deg") + 30);</script>
</binding>
</low>
<high>
<binding>
<command type="string">nasal</command>
<script type="string">setprop("/sim/current-view/goal-heading-offset-deg", getprop("/sim/current-view/goal-heading-offset-deg") - 30);</script>
</binding>
</high>
</axis>
<axis n="4">
<desc type="string">View (vertical)</desc>
<low>
<binding>
<command type="string">nasal</command>
<script type="string">setprop("/sim/current-view/goal-pitch-offset-deg", getprop("/sim/current-view/goal-pitch-offset-deg") - 20);</script>
</binding>
</low>
<high>
<binding>
<command type="string">nasal</command>
<script type="string">setprop("/sim/current-view/goal-pitch-offset-deg", getprop("/sim/current-view/goal-pitch-offset-deg") + 20);</script>
</binding>
</high>
</axis>
<button>
<desc type="string">Trigger</desc>
<repeatable type="string">false</repeatable>
<binding>
<command type="string">nasal</command>
<script type="string">controls.trigger(1);</script>
</binding>
<mod-up>
<binding>
<command type="string">nasal</command>
<script type="string">controls.trigger(0);</script>
</binding>
</mod-up>
</button>
<button n="1">
<desc type="string">Brakes</desc>
<repeatable type="string">false</repeatable>
<binding>
<command type="string">nasal</command>
<script type="string">controls.applyBrakes(1);</script>
</binding>
<mod-up>
<binding>
<command type="string">nasal</command>
<script type="string">controls.applyBrakes(0);</script>
</binding>
</mod-up>
</button>
<button n="2">
<desc type="string">Gear Up</desc>
<repeatable type="string">false</repeatable>
<binding>
<command type="string">nasal</command>
<script type="string">controls.gearDown(-1);</script>
</binding>
<mod-up>
<binding>
<command type="string">nasal</command>
<script type="string">controls.gearDown(0);</script>
</binding>
</mod-up>
</button>
<button n="4">
<desc type="string">Propeller Fine</desc>
<binding>
<command type="string">nasal</command>
<script type="string">controls.adjPropeller(1);</script>
</binding>
<repeatable type="double">1</repeatable>
</button>
<button n="5">
<desc type="string">Mixture Rich</desc>
<binding>
<command type="string">nasal</command>
<script type="string">controls.adjMixture(1);</script>
</binding>
<repeatable type="double">1</repeatable>
</button>
<button n="6">
<desc type="string">Propeller Coarse</desc>
<binding>
<command type="string">nasal</command>
<script type="string">controls.adjPropeller(-1);</script>
</binding>
<repeatable type="double">1</repeatable>
</button>
<button n="7">
<desc type="string">Mixture Lean</desc>
<binding>
<command type="string">nasal</command>
<script type="string">controls.adjMixture(-1);</script>
</binding>
<repeatable type="double">1</repeatable>
</button>
</PropertyList>