1
0
Fork 0

ThrustMaster T1600M tweaks

- left/right top of stick buttons cycles views, instead of aileron
  trim, since I judge this to be a more commonly used feature. But
  maybe this will cause a conversation.

- adjust sensitivity of the hat view-direction control, was unusably
  fast for me.
This commit is contained in:
James Turner 2016-01-15 19:38:38 -06:00
parent bd1fa5b201
commit fd8a1dece8

View file

@ -12,10 +12,10 @@
* Axis 3: throttle * Axis 3: throttle
* Axis 4: Horizontal Hat * Axis 4: Horizontal Hat
* Axis 5: Vertical Hat * Axis 5: Vertical Hat
* Axis 6: view left/right * Axis 6: view left/right
* Axis 7: view Up/down * Axis 7: view Up/down
* *
* Button 0: (fire) all brakes * Button 0: (fire) all brakes
* Button 1: gear up/down * Button 1: gear up/down
* Button 4: trim up * Button 4: trim up
* Button 9: trim down * Button 9: trim down
@ -30,7 +30,7 @@
* Button 12: Battery On/Off * Button 12: Battery On/Off
* Button 13: Fuel selector * Button 13: Fuel selector
* Button 11: Magnetos * Button 11: Magnetos
* Button 14: starter * Button 14: starter
************************************************************************ ************************************************************************
--> -->
@ -111,7 +111,7 @@
<binding> <binding>
<command>property-adjust</command> <command>property-adjust</command>
<property>/sim/current-view/goal-heading-offset-deg</property> <property>/sim/current-view/goal-heading-offset-deg</property>
<step type="double">5.0</step> <step type="double">2.0</step>
</binding> </binding>
</low> </low>
<high> <high>
@ -119,7 +119,7 @@
<binding> <binding>
<command>property-adjust</command> <command>property-adjust</command>
<property>/sim/current-view/goal-heading-offset-deg</property> <property>/sim/current-view/goal-heading-offset-deg</property>
<step type="double">-5.0</step> <step type="double">-2.0</step>
</binding> </binding>
</high> </high>
</axis> </axis>
@ -136,7 +136,7 @@
<binding> <binding>
<command>property-adjust</command> <command>property-adjust</command>
<property>/sim/current-view/goal-pitch-offset-deg</property> <property>/sim/current-view/goal-pitch-offset-deg</property>
<step type="double">5.0</step> <step type="double">2.0</step>
</binding> </binding>
</low> </low>
<high> <high>
@ -144,7 +144,7 @@
<binding> <binding>
<command>property-adjust</command> <command>property-adjust</command>
<property>/sim/current-view/goal-pitch-offset-deg</property> <property>/sim/current-view/goal-pitch-offset-deg</property>
<step type="double">-5.0</step> <step type="double">-2.0</step>
</binding> </binding>
</high> </high>
</axis> </axis>
@ -164,7 +164,7 @@
</mod-up> </mod-up>
</button> </button>
<button n="4"> <button n="1">
<desc>Trigger</desc> <desc>Trigger</desc>
<binding> <binding>
<command>property-assign</command> <command>property-assign</command>
@ -200,20 +200,20 @@
</button> </button>
<button n="15"> <button n="15">
<desc>Flaps up</desc> <desc>Flaps up</desc>
<repeatable>false</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>controls.flapsDown(1)</script> <script>controls.flapsDown(1)</script>
</binding> </binding>
<mod-up> <mod-up>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>controls.flapsDown(0)</script> <script>controls.flapsDown(0)</script>
</binding> </binding>
</mod-up> </mod-up>
</button> </button>
<button n="10"> <button n="10">
<desc>Flaps down</desc> <desc>Flaps down</desc>
<repeatable>false</repeatable> <repeatable>false</repeatable>
@ -229,6 +229,7 @@
</mod-up> </mod-up>
</button> </button>
<!--
<button n="1"> <button n="1">
<desc>Landing Gear Toggle</desc> <desc>Landing Gear Toggle</desc>
<repeatable type="bool">false</repeatable> <repeatable type="bool">false</repeatable>
@ -237,23 +238,23 @@
<script>controls.gearToggle()</script> <script>controls.gearToggle()</script>
</binding> </binding>
</button> </button>
-->
<button n="2"> <button n="2">
<desc>Aileron trim left</desc> <desc>Cycle view back</desc>
<repeatable type="bool">true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>controls.aileronTrim(-0.5)</script> <script>view.stepView(-1)</script>
</binding> </binding>
</button> </button>
<button n="3"> <button n="3">
<desc>Aileron trim right</desc> <desc>Cycle view forward</desc>
<repeatable type="bool">true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>controls.aileronTrim(0.5)</script> <script>view.stepView(1)</script>
</binding> </binding>
</button> </button>
@ -302,7 +303,7 @@
<![CDATA[ <![CDATA[
j = getprop("/controls/electric/battery-switch"); j = getprop("/controls/electric/battery-switch");
if (j == 0) if (j == 0)
{ {
setprop("/controls/electric/battery-switch", 1); setprop("/controls/electric/battery-switch", 1);
} else } else
{ setprop("/controls/electric/battery-switch", 0); { setprop("/controls/electric/battery-switch", 0);
@ -325,7 +326,7 @@
setprop("/controls/fuel/tank/fuel_selector", 1); setprop("/controls/fuel/tank/fuel_selector", 1);
setprop("/controls/engines/engine/fuel-pump", 1); setprop("/controls/engines/engine/fuel-pump", 1);
} else } else
{ {
setprop("/controls/fuel/tank/fuel_selector", 0); setprop("/controls/fuel/tank/fuel_selector", 0);
setprop("/controls/engines/engine/fuel-pump", 0); setprop("/controls/engines/engine/fuel-pump", 0);
} }
@ -345,7 +346,7 @@
if (l == 0) if (l == 0)
{ {
props.setAll("/controls/engines/engine", "magnetos", 1); props.setAll("/controls/engines/engine", "magnetos", 1);
} }
elsif ( l == 1 ) elsif ( l == 1 )
{ {
props.setAll("/controls/engines/engine", "magnetos", 2); props.setAll("/controls/engines/engine", "magnetos", 2);
@ -396,4 +397,3 @@ elsif ( l == 3 )
<!-- end of TGF2PROUSB.xml --> <!-- end of TGF2PROUSB.xml -->