use controls.geatToggle() wrapper
This commit is contained in:
parent
dfaec0a645
commit
3ba1323fe8
1 changed files with 1 additions and 10 deletions
|
@ -207,16 +207,7 @@ Bindings for THRUSTMASTER HOTAS Cougar stick/throttle combination.
|
|||
<desc>gear up or down</desc>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<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>
|
||||
<script>controls.gearToggle()</script>
|
||||
</binding>
|
||||
</button>
|
||||
<!-- end gear configuration -->
|
||||
|
|
Loading…
Reference in a new issue