event.phase

Type String
Event relativeTouch
Revision Release 2024.3703
Keywords touch, relativeTouch, phase

Overview

A string identifying where in the relative touch sequence the event occurred. Can be one of the following values:

Example

local phaseText = display.newText( "", display.contentCenterX, display.contentCenterY )

local function updateText( event )
    phaseText.text = event.phase
end
Runtime:addEventListener( "relativeTouch", updateText )