Hi there,
I am using the "Touch Button Event" trigger and apply this event to several buttons by defining a range of buttons as "button<2d>" in the Button field.
Now I want to use lua script to find which specific button out of the range of buttons was pressed and launch specific events accordingly. Here's the most basic test script:
if get_touch_device(TPS5, 4):is_touch_button_pressed("button01") then
log("button01 is pressed")
end
I know that the get_touch_device(TPS5, 4) portion works because I use it extensively with other commands.
I also know that the button range definition as "button<2d>" works in the "Touch Button Event" trigger to trigger a lua script as I tested other lua commands. But I never seem to be able to get the is_touch_button_pressed to work.
Any tips?
Thx!
Erwin