diff options
Diffstat (limited to 'genericswitch.lua')
-rw-r--r-- | genericswitch.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/genericswitch.lua b/genericswitch.lua index d52e9c9..9cdf31c 100644 --- a/genericswitch.lua +++ b/genericswitch.lua @@ -154,6 +154,30 @@ local inputoptions = { end, needsfloor = true, }, + { + id = "swingon", + desc = "Activate Swing Operation", + func_on = function(controllerpos) + celevator.controller.run(controllerpos,{ + type = "remotemsg", + channel = "swing", + msg = true, + }) + end, + needsfloor = false, + }, + { + id = "swingoff", + desc = "Deactivate Swing Operation", + func_on = function(controllerpos) + celevator.controller.run(controllerpos,{ + type = "remotemsg", + channel = "swing", + msg = false, + }) + end, + needsfloor = false, + }, } local dinputoptions = { |