event.name

Type String
Event touch
Revision Current Public Release (2017.3068)
Keywords touch, name

Overview

The name of the event, "touch", which is accessible via the touch event listener.

Example

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 )