Does anyone have working code to detect single and double taps on Corona?
I set the tap delay to 2 seconds tops
system.setTapDelay( 2 )
Here is the event listener function which always goes to Help1_scene
local function HelpTapEvent(event) if (event.numTaps \> 1 ) then storyboard.gotoScene( "Help2\_scene", "flip", \_G.slideTrans ) else storyboard.gotoScene( "Help1\_scene", "flip", \_G.slideTrans ) end return(true) end
Here is the code that puts up a question mark image and if they need help, it would jump to the help file scene.
helpButton = display.newImageRect("questionmark.png",45,45) helpButton.x = \_G.nextButtonX helpButton.y = \_G.nextButtonY helpButton.alpha = \_G.nextButtonAlpha screenGroup:insert( helpButton )
I want to overload the question mark with a double tap to allow it to go to the stats page if they double tap the question mark. So far I can only get it to go to Help.
Thanks!
Stu

