I been trying to setup a joystick button to deploy the spreedbrakes instead of pressing ctrl-b when trying to land.
I have some code but it did not work
ONE BUTTON SCRIPTS DEPLOY FULL SPEEDBRAKES THEN <mod-up> RETRACTS THEM ON RELEASING BUTTON
GIVING FASTER REACTION TIME THAN A TOGGLE SCRIPT WHICH NEEDS 2 SEPERATE PRESSES!
<button n="4"> <binding> <command>nasal</command> <script> setprop("/controls/flight/speedbrake", 1);
</script> </binding>
<mod-up> <binding> <command>nasal</command> <script> setprop("/controls/flight/speedbrake", 0); </script>
</binding> </mod-up> </button>
<button n="5"> <binding> <command>property-assign</command> <property>/controls/flight/speedbrake</property>
<value type="double">1.0</value> </binding>
<mod-up> <binding> <command>property-assign</command> <property>/controls/flight/speedbrake</property>
<value type="double">0.0</value> </binding> </mod-up> </button>
Any suggestion on this code or a better method