1
0
Fork 0

use controls.geatToggle() wrapper

This commit is contained in:
mfranz 2007-01-15 23:08:29 +00:00
parent dfaec0a645
commit 3ba1323fe8

View file

@ -207,16 +207,7 @@ Bindings for THRUSTMASTER HOTAS Cougar stick/throttle combination.
<desc>gear up or down</desc> <desc>gear up or down</desc>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script> <script>controls.gearToggle()</script>
gearToggle = getprop("/controls/gear/gear-down");
if (gearToggle == 1) {
controls.gearDown(-1);
gui.popupTip("Gear up!");
} else {
controls.gearDown(1);
gui.popupTip("Gear down!");
}
</script>
</binding> </binding>
</button> </button>
<!-- end gear configuration --> <!-- end gear configuration -->