1
0
Fork 0

fix flaps, gear, brakes (make them use the controls wrappers)

This commit is contained in:
mfranz 2007-01-15 23:01:50 +00:00
parent cbf2ad2f03
commit dfaec0a645

View file

@ -107,25 +107,13 @@ Have fun! Marky Marc
<button n="0"> <button n="0">
<desc>Brakes</desc> <desc>Brakes</desc>
<binding> <binding>
<command>property-assign</command> <command>nasal</command>
<property>/controls/gear/brake-left</property> <script>controls.applyBrakes(1, 0)</script>
<value type="double">1.0</value>
</binding>
<binding>
<command>property-assign</command>
<property>/controls/gear/brake-right</property>
<value type="double">1.0</value>
</binding> </binding>
<mod-up> <mod-up>
<binding> <binding>
<command>property-assign</command> <command>nasal</command>
<property>/controls/gear/brake-left</property> <script>controls.applyBrakes(0, 0)</script>
<value type="double">0.0</value>
</binding>
<binding>
<command>property-assign</command>
<property>/controls/gear/brake-right</property>
<value type="double">0.0</value>
</binding> </binding>
</mod-up> </mod-up>
</button> </button>
@ -143,14 +131,8 @@ Have fun! Marky Marc
<desc>Center View</desc> <desc>Center View</desc>
<repeatable type="bool">false</repeatable> <repeatable type="bool">false</repeatable>
<binding> <binding>
<command>property-assign</command> <command>nasal</command>
<property>/sim/current-view/goal-heading-offset-deg</property> <script>view.resetView()</script>
<value type="double">0.0</value>
</binding>
<binding>
<command>property-assign</command>
<property>/sim/current-view/goal-pitch-offset-deg</property>
<value type="double">0.0</value>
</binding> </binding>
</button> </button>
@ -161,70 +143,90 @@ Have fun! Marky Marc
<command>nasal</command> <command>nasal</command>
<script>controls.elevatorTrim(-1)</script> <script>controls.elevatorTrim(-1)</script>
</binding> </binding>
</button> <button n="4"> </button>
<button n="4">
<desc>Flaps down</desc> <desc>Flaps down</desc>
<repeatable>false</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>property-adjust</command> <command>nasal</command>
<property>/controls/flight/flaps</property> <script>controls.flapsDown(1)</script>
<step type="double">-0.34</step>
</binding> </binding>
<mod-up>
<binding>
<command>nasal</command>
<script>controls.flapsDown(0)</script>
</binding>
</mod-up>
</button> </button>
<button n="5"> <button n="5">
<desc>Flaps up</desc> <desc>Flaps up</desc>
<repeatable>false</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>property-adjust</command> <command>nasal</command>
<property>/controls/flight/flaps</property> <script>controls.flapsDown(-1)</script>
<step type="double">0.34</step>
</binding> </binding>
<mod-up>
<binding>
<command>nasal</command>
<script>controls.flapsDown(0)</script>
</binding>
</mod-up>
</button> </button>
<button n="6"> <button n="6">
<desc>Gear up</desc> <desc>Gear up</desc>
<binding> <binding>
<command>property-assign</command> <command>nasal</command>
<property>/controls/gear/gear-down</property> <script>controls.gearDown(-1)</script>
<value type="double">0.0</value>
</binding> </binding>
<mod-up>
<binding>
<command>nasal</command>
<script>controls.gearDown(0)</script>
</binding>
</mod-up>
</button> </button>
<button n="7"> <button n="7">
<desc>Gear down</desc> <desc>Gear down</desc>
<binding> <binding>
<command>property-assign</command> <command>nasal</command>
<property>/controls/gear/gear-down</property> <script>controls.gearDown(1)</script>
<value type="double">1.0</value>
</binding> </binding>
<mod-up>
<binding>
<command>nasal</command>
<script>controls.gearDown(0)</script>
</binding>
</mod-up>
</button> </button>
<button n="8"> <button n="8">
<desc>Left brake</desc> <desc>Left brake</desc>
<binding> <binding>
<command>property-assign</command> <command>nasal</command>
<property>/controls/gear/brake-left</property> <script>controls.applyBrakes(1, -1)</script>
<value type="double">1.0</value>
</binding> </binding>
<mod-up> <mod-up>
<binding> <binding>
<command>property-assign</command> <command>nasal</command>
<property>/controls/gear/brake-left</property> <script>controls.applyBrakes(0, -1)</script>
<value type="double">0.0</value>
</binding> </binding>
</mod-up> </mod-up>
</button> <button n="9"> </button>
<button n="9">
<desc>Right brake</desc> <desc>Right brake</desc>
<binding> <binding>
<command>property-assign</command> <command>nasal</command>
<property>/controls/gear/brake-right</property> <script>controls.applyBrakes(1, 1)</script>
<value type="double">1.0</value>
</binding> </binding>
<mod-up> <mod-up>
<binding> <binding>
<command>property-assign</command> <command>nasal</command>
<property>/controls/gear/brake-right</property> <script>controls.applyBrakes(0, 1)</script>
<value type="double">0.0</value>
</binding> </binding>
</mod-up> </mod-up>
</button> </button>