Hi
I’ve got a function attached to 4 buttons.
button1:addEventListener( "touch", startDrag ) button2:addEventListener( "touch", startDrag ) button3:addEventListener( "touch", startDrag ) button4:addEventListener( "touch", startDrag )
How can I know, except for the part of visualy seeing it :), which button triggered the startDrag function?
The startDrag function goes like this:
local function startDrag( event, params ) local body = event.target local phase = event.phase local stage = display.getCurrentStage() local direction = event.direction if "began" == phase then ...