How to get the number of Taps in Corona SDK?

By | November 28, 2011

Here is the sample code to get the number of taps on a view in Corona SDK.

function button:tap( event )
	print("Number of taps : "..event.numTaps)
end

button:addEventListener( "tap", button )

here button is a displayObject like an image or a UI Button and event.numTaps gives the number of Taps on that view.

Leave a Reply

Your email address will not be published. Required fields are marked *