I need to know which button was tapped. I think id should be used - I don’t know.
That’s what I have:
local function addItem(event) if("ended" == event.phase) then --[[IF ID == ... THEN --]] end end local addBtn = widget.newButton( { top = 170, width = 70, height = 70, id = "addBtn", defaultFile = "", onEvent = addItem, defaultFile = "add.png", } )