From c39b82a4a4007bd72e2b95d5be76c147cfa7e75b Mon Sep 17 00:00:00 2001 From: mfranz Date: Fri, 9 Jun 2006 20:52:03 +0000 Subject: [PATCH] add trigger interface function, to be used by all armed aircraft, so that there's a unified way for joysticks/kbd bindings to activate weapons --- Nasal/controls.nas | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Nasal/controls.nas b/Nasal/controls.nas index 7827078d9..87fb1ff4e 100644 --- a/Nasal/controls.nas +++ b/Nasal/controls.nas @@ -352,3 +352,8 @@ applyParkingBrake = func(v) { return i; } +## +# Weapon handling. +# +trigger = func(b) { setprop("/controls/armament/trigger", b); } +