Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a way to determine which input(s) triggered a LUA script #133

Closed
mifrey00 opened this issue Mar 13, 2017 · 2 comments
Closed

Add a way to determine which input(s) triggered a LUA script #133

mifrey00 opened this issue Mar 13, 2017 · 2 comments

Comments

@mifrey00
Copy link

Add a way to determine in a LUA script which input(s) triggered this script. This would allow to execute different instructions depending on the input(s) that changed.

@raoulh raoulh closed this as completed in 98f4caf Mar 24, 2017
@raoulh
Copy link
Member

raoulh commented Mar 24, 2017

Usage:

local trigger_id = calaos:getEnv("trigger_id")

print("Id that triggered: " .. trigger_id)

return false

@mifrey00
Copy link
Author

Great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants