event.tapCount

Type Number
Event relativeTouch
Revision Current Public Release (2017.3135)
Keywords touch, relativeTouch, tapCount

Overview

The number of taps on the device.

Gotchas

The tap count is only provided on the "ended" phase.

Example

local function tapListener( event )
    if ( event.tapCount ) then
        print( event.tapCount )
    end
end
Runtime:addEventListener( "relativeTouch", tapListener )