1
0
Fork 0

Use generic trigger property. Add features for use with CTRL

This commit is contained in:
vmmeazza 2010-02-03 23:02:14 +00:00
parent 041aad9319
commit cce90b6001

View file

@ -82,7 +82,7 @@
</axis> </axis>
<axis> <axis>
<desc>View Direction</desc> <desc>View Direction Ctrl Aileron Trim</desc>
<number> <number>
<unix>4</unix> <unix>4</unix>
<windows>6</windows> <windows>6</windows>
@ -94,6 +94,13 @@
<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">5.0</step>
</binding> </binding>
<mod-ctrl>
<desc>aileron adjustment</desc>
<binding>
<command>nasal</command>
<script>controls.aileronTrim(-1)</script>
</binding>
</mod-ctrl>
</low> </low>
<high> <high>
<repeatable>true</repeatable> <repeatable>true</repeatable>
@ -102,11 +109,18 @@
<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">-5.0</step>
</binding> </binding>
<mod-ctrl>
<desc>aileron adjustment</desc>
<binding>
<command>nasal</command>
<script>controls.aileronTrim(1)</script>
</binding>
</mod-ctrl>
</high> </high>
</axis> </axis>
<axis> <axis>
<desc>View Elevation</desc> <desc>View Elevation Ctrl Elevator Trim</desc>
<number> <number>
<unix>5</unix> <unix>5</unix>
<windows>7</windows> <windows>7</windows>
@ -118,6 +132,13 @@
<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">5.0</step>
</binding> </binding>
<mod-ctrl>
<desc>Elevator adjustment</desc>
<binding>
<command>nasal</command>
<script>controls.elevatorTrim(-1)</script>
</binding>
</mod-ctrl>
</low> </low>
<high> <high>
<repeatable>true</repeatable> <repeatable>true</repeatable>
@ -126,6 +147,13 @@
<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">-5.0</step>
</binding> </binding>
<mod-ctrl>
<desc>Elevator adjustment</desc>
<binding>
<command>nasal</command>
<script>controls.elevatorTrim(1)</script>
</binding>
</mod-ctrl>
</high> </high>
</axis> </axis>
@ -154,15 +182,19 @@
<windows>1</windows> <windows>1</windows>
</number> </number>
<binding> <binding>
<command>property-assign</command> <!--<command>property-assign</command>
<property>ai/submodels/trigger</property> <property>ai/submodels/trigger</property>
<value type="bool">1</value> <value type="bool">1</value>-->
<command>nasal</command>
<script>controls.trigger(1)</script>
</binding> </binding>
<mod-up> <mod-up>
<binding> <binding>
<command>property-assign</command> <!--<command>property-assign</command>
<property>ai/submodels/trigger</property> <property>ai/submodels/trigger</property>
<value type="bool">0</value> <value type="bool">0</value>-->
<command>nasal</command>
<script>controls.trigger(0)</script>
</binding> </binding>
</mod-up> </mod-up>
</button> </button>
@ -278,7 +310,7 @@
<command>property-adjust</command> <command>property-adjust</command>
<property>/controls/engines/engine/propeller-pitch</property> <property>/controls/engines/engine/propeller-pitch</property>
<step type="double">0.1</step> <step type="double">0.1</step>
<min type="double">-1</min> <min type="double">0</min>
<max type="double">1</max> <max type="double">1</max>
</binding> </binding>
</button> </button>
@ -294,7 +326,7 @@
<command>property-adjust</command> <command>property-adjust</command>
<property>/controls/engines/engine/propeller-pitch</property> <property>/controls/engines/engine/propeller-pitch</property>
<step type="double">-0.1</step> <step type="double">-0.1</step>
<min type="double">-1</min> <min type="double">0</min>
<max type="double">1</max> <max type="double">1</max>
</binding> </binding>
</button> </button>