Type String Event touch Revision 2017.3060 Keywords touch, name
The name of the event, "touch"
, which is accessible via the touch event listener.
local object = display.newImage( "ball.png" ) function object:touch( event ) if event.phase == "began" then print( "Event dispatched; name: " .. event.name ) end return true end object:addEventListener( "touch", object )