Full screen touch listener minus one part

Hi all,

I was wondering if something like this would be possible. At the moment I have a full screen touch listener, however, I would like that to ‘ignore’ one corner of the page where I have a pause button, at 0,0 for a size of 30,30

Does anybody have any ideas as to how this could be created?

Thanks!

Here’s my code:

local function onTouch( event )
if ( event.phase == “began” ) then
– my touch code is here
return true
end
Runtime:addEventListener( “touch”, onTouch )

Instead of having a runtime event listener for touch, I would create a transparent panel the size of the screen and register touch events on the panel.  Then have a separate touch event for the pause button and return true at the end of it to prevent propagation. 

Instead of having a runtime event listener for touch, I would create a transparent panel the size of the screen and register touch events on the panel.  Then have a separate touch event for the pause button and return true at the end of it to prevent propagation.