summaryrefslogtreecommitdiff
path: root/controllerfw.lua
diff options
context:
space:
mode:
Diffstat (limited to 'controllerfw.lua')
-rw-r--r--controllerfw.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/controllerfw.lua b/controllerfw.lua
index e21a9e7..f9dfacc 100644
--- a/controllerfw.lua
+++ b/controllerfw.lua
@@ -395,6 +395,12 @@ elseif event.iid == "closed" and (mem.doorstate == "closing" or mem.doorstate ==
mem.carmotion = true
juststarted = true
end
+elseif event.type == "callbutton" and mem.carstate == "normal" then
+ if event.dir == "up" and event.landing >= 1 and event.landing < #mem.params.floornames then
+ mem.upcalls[event.landing] = true
+ elseif event.dir == "down" and event.landing > 1 and event.landing <= #mem.params.floornames then
+ mem.dncalls[event.landing] = true
+ end
end
local oldstate = mem.carstate