diff --git a/Input/Keyboard/carrier-bindings.xml b/Input/Keyboard/carrier-bindings.xml index a0eac4ba2..ac3f9faf4 100644 --- a/Input/Keyboard/carrier-bindings.xml +++ b/Input/Keyboard/carrier-bindings.xml @@ -1,7 +1,7 @@ - + - + C Catapult Launch Command. @@ -17,8 +17,9 @@ + - + L Launch-bar engage. @@ -34,42 +35,56 @@ + - + O Hook down. - + property-assign controls/gear/tailhook 1.0 - + + o Hook Up. - + property-assign controls/gear/tailhook 0.0 + - + F Wing Fold Down. - - property-assign - controls/flight/wing-fold - 1.0 + + nasal + + + + nasal + + + - + + f Wing Fold Up. - - property-assign - controls/flight/wing-fold - 0.0 - + + nasal + + + + + nasal + + + diff --git a/Nasal/controls.nas b/Nasal/controls.nas index 06e454fd3..f9b7d02e0 100644 --- a/Nasal/controls.nas +++ b/Nasal/controls.nas @@ -98,6 +98,10 @@ var wingSweep = func(step) { setprop("/controls/flight/wing-sweep", val > 1 ? 1 : val < 0 ? 0 : val); } +var wingsDown = func(v) { + if(v) setprop("/controls/flight/wing-fold", v > 0); +} + var stepSpoilers = func(step) { if(props.globals.getNode("/sim/spoilers") != nil) { stepProps("/controls/flight/spoilers", "/sim/spoilers", step);