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
This commit is contained in:
parent
2a20cdecf6
commit
c39b82a4a4
1 changed files with 5 additions and 0 deletions
|
@ -352,3 +352,8 @@ applyParkingBrake = func(v) {
|
|||
return i;
|
||||
}
|
||||
|
||||
##
|
||||
# Weapon handling.
|
||||
#
|
||||
trigger = func(b) { setprop("/controls/armament/trigger", b); }
|
||||
|
||||
|
|
Loading…
Reference in a new issue