1
0
Fork 0

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:
curt 2005-09-09 01:41:08 +00:00
parent f65ed6271f
commit 4100dc0f7b

View file

@ -328,5 +328,5 @@ gearDown = func {
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); }