"tap" vs. "touch"?

I’ve seen some samples using:

blah:addEventListener (“touch”, doBlah)

and others use:

blah:addEventListener (“tap”, doBlah)

Do these both do the same thing? I can’t find any documentation on “tap” is it deprecated?

Also, is there any equivalent in Corona for a double-click or double-tap event?

Thank you!!! [import]uid: 10747 topic_id: 3581 reply_id: 303581[/import]

“touch” includes detection of “tap”.

in layman’s terms
touch detects a myriad of touch events.

When your finger presses a button, when your finger moves along a button, or when your finger lifts from touching a button.

tap only detects the lift or release. [import]uid: 11024 topic_id: 3581 reply_id: 10808[/import]

Ah great thank you!

Do you know if there are any other event types other than “tap” and “touch” such as double tap? [import]uid: 10747 topic_id: 3581 reply_id: 10818[/import]

Well this is what I did as a double-tap solution, seems to work ok. Please let me know if something already exists and I’ll use it:

[lua]local hitTime = system.getTimer ()
– This can be changed to whatever interval you want, 250 seems to work ok
local tapDelay = 250

local function myTouchListenerCallback (event)

if “began” == phase then

local currTime = system.getTimer ()

if currTime < hitTime + tapDelay then

–Do your double-tap stuff here

end

hitTime = currTime

end

end

doubleTapButton:addEventListener (“touch”, myTouchListenerCallback)[/lua] [import]uid: 10747 topic_id: 3581 reply_id: 10820[/import]