gearDown() expects a number either < 0 or > 0 to specify the direction of
gear movement. gearToggle() was sending either a 0 (not handled) or a 1. Change gearToggle() so it sends either -1 and 1 so gearToggle() will work again.
This commit is contained in:
parent
f65ed6271f
commit
4100dc0f7b
1 changed files with 1 additions and 1 deletions
|
@ -328,5 +328,5 @@ gearDown = func {
|
||||||
setprop("/controls/gear/gear-down", 1);
|
setprop("/controls/gear/gear-down", 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
gearToggle = func { gearDown(getprop("/controls/gear/gear-down") > 0 ? 0 : 1); }
|
gearToggle = func { gearDown(getprop("/controls/gear/gear-down") > 0 ? -1 : 1); }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue