Type Number Event tap Revision 2017.3060 Keywords tap, numTaps See also system.setTapDelay()
The number of taps on the screen.
local function tapListener( event ) print( event.numTaps ) end Runtime:addEventListener( "tap", tapListener )
local object = display.newImage( "image.png" ) function object:tap( event ) print( event.numTaps ) end object:addEventListener( "tap", object )
local object = display.newImage( "image.png" ) local function onObjectTap( self, event ) print( event.numTaps ) end object.tap = onObjectTap object:addEventListener( "tap", object )