Type Number Event relativeTouch Revision Release 2026.3728 Keywords touch, relativeTouch, tapCount
The number of taps on the device.
The tap count is only provided on the "ended" phase.
local function tapListener( event )
if ( event.tapCount ) then
print( event.tapCount )
end
end
Runtime:addEventListener( "relativeTouch", tapListener )