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