Jim Campbell: add carb-heat axis support
This commit is contained in:
parent
6654497a78
commit
1988fbb089
1 changed files with 6 additions and 0 deletions
|
@ -76,6 +76,12 @@ propellerAxis = func {
|
|||
if(size(arg) > 0) { val = -val; }
|
||||
props.setAll("/controls/engines/engine", "propeller-pitch", (1 - val)/2);
|
||||
}
|
||||
carbHeatAxis = func {
|
||||
val = cmdarg().getNode("setting").getValue();
|
||||
if(size(arg) > 0) { val = -val; }
|
||||
props.setAll("/controls/anti-ice/engine", "carb-heat", (1 - val)/2);
|
||||
}
|
||||
|
||||
|
||||
##
|
||||
# Wrapper around stepProps() which emulates the "old" flap behavior for
|
||||
|
|
Loading…
Add table
Reference in a new issue