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>
|
<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 -->
|
||||||
|
|
Loading…
Reference in a new issue