New Corona Cloud gameNetwork Api - Touch listeners

Just checked out the new api at http://www.coronalabs.com/blog/2013/04/23/new-corona-cloud-api-library/ and it seems a bit more stable / usable than the previous one, however I noticed that it only handled “touch” events but not “tap” events. Unfortunately my menu typically uses tap rather than touch so even when the touch listener is returning true, my tap listener is still being called “under” the gameNetwork GUI. It would be nice for the GUI to also take car of the tap listener.

Cheers,

Marco

I’m a little confused.  The new cloud.lua doesn’t do anything with touch listeners.  The gameNetwork UI sample may but you should be able to call all the functions (gameNetwork.show(“leaderbboards”)) from your own buttons that could be done with tap.

Help me understand the problem.

Hey Rob

Sorry if I didn’t make it clear … 

I’m talking about the gameNetwork UI. It pops up over the current scene (so you can still see my menu behind it). When someone touches the gameNetwork UI, it’s touch listener returns true and therefore my menu below doesn’t receive the touch events, however because my menu uses the “tap” listener, the gameNetwork UI doesn’t stop these from going through to my menu, so people click on the gameNetwork UI to view leader boards etc which is also triggering my menu buttons underneath to be clicked. Hope that makes sense.

Cheers,

Marco

Okay.  I’m not sure if there is a good answer other than for you to change to touch’s instead of taps.  I’ll bring this up to the team but I’m not sure what the solution would be.

Hey Rob

I have changed my listeners, not a major problem, I just feel that the gameNetwork UI should act more like a modal popup and stop all touch or tap events from passing through it’s interface. More of a suggestion I guess.

Marco

I brought it up to the team.  Thanks for the input!

I’m a little confused.  The new cloud.lua doesn’t do anything with touch listeners.  The gameNetwork UI sample may but you should be able to call all the functions (gameNetwork.show(“leaderbboards”)) from your own buttons that could be done with tap.

Help me understand the problem.

Hey Rob

Sorry if I didn’t make it clear … 

I’m talking about the gameNetwork UI. It pops up over the current scene (so you can still see my menu behind it). When someone touches the gameNetwork UI, it’s touch listener returns true and therefore my menu below doesn’t receive the touch events, however because my menu uses the “tap” listener, the gameNetwork UI doesn’t stop these from going through to my menu, so people click on the gameNetwork UI to view leader boards etc which is also triggering my menu buttons underneath to be clicked. Hope that makes sense.

Cheers,

Marco

Okay.  I’m not sure if there is a good answer other than for you to change to touch’s instead of taps.  I’ll bring this up to the team but I’m not sure what the solution would be.

Hey Rob

I have changed my listeners, not a major problem, I just feel that the gameNetwork UI should act more like a modal popup and stop all touch or tap events from passing through it’s interface. More of a suggestion I guess.

Marco

I brought it up to the team.  Thanks for the input!