When did we get "tap" as an event to listen for?

Saw this in a forum post somewhere:

Runtime:addEventListener(“tap”, spawnObject)

When was “tap” introduced? It’s not in the API Reference or Docs.
I wish the docs were better organized and updated. I sometimes feel I am missing a lot of things I should know (such as this) [import]uid: 22392 topic_id: 12499 reply_id: 312499[/import]

I feel the same way too. Hopefully the release on Aug 2nd will bring an upgrade to the docs. [import]uid: 14218 topic_id: 12499 reply_id: 45670[/import]

You can view tap event documentation here:

http://developer.anscamobile.com/reference/index/events/tap

It’s listed under the ‘Events’ category on the API page.

In short, a “tap” event differs from a normal touch event in that it includes an event.numTaps in the event callback to allow you to track hit counts (useful for many games/apps). [import]uid: 52430 topic_id: 12499 reply_id: 45678[/import]

@ChunkyApps, Are you following Ansca, Carloa and Jonathan Beebe on Twitter? I started a following them a few weeks ago and that’s how I receive my updates. [import]uid: 14218 topic_id: 12499 reply_id: 45682[/import]

Awesome! I was trying to figure out how to record a double-tap for my game. Now I know!

And I looked right at that page earlier and totally missed it. D’oh! [import]uid: 22392 topic_id: 12499 reply_id: 45685[/import]

@spoggles

Oh yeah I follow them all. And Peach Pellen too :wink: [import]uid: 22392 topic_id: 12499 reply_id: 45687[/import]

The other cool thing about the tap event is that it doesn’t have “phases” like the touch event, so you don’t need to check for e.phase == “began” or anything like that.

When all you care about is whether the user tapped the screen (once or twice), tap is the way to go.

Jay
[import]uid: 9440 topic_id: 12499 reply_id: 45691[/import]

I use tap for just about everything unless I need a drag swipe or something like that [import]uid: 7911 topic_id: 12499 reply_id: 45700[/import]