TouchEvent.ACTION_UP not recognized

  ... the MultiTouch Extension for AndEngine.

TouchEvent.ACTION_UP not recognized

Postby GarethSadow » Sat Dec 17, 2011 5:29 pm

Hi people, i've been stucked for some days, trying to use multitouch in simply game i'm developing.

I've two sprites A and B, and in both of them i catch the events with onAreaTouched.
The problem is that, when i'm touching A Sprite, the ACTION_UP event is not recognized in Sprite B.

But in the inverse order it is recognized ( ACTION_UP of A is recognized meanwhile B is pressed).

Anyone can help me? Txs.
GarethSadow
 
Posts: 2
Joined: Sat Dec 17, 2011 5:11 pm

Re: TouchEvent.ACTION_UP not recognized

Postby GarethSadow » Sat Dec 17, 2011 6:18 pm

Solved..

I've discovered two ways to fix the problem.

The first one is using ACTION_POINTER_UP.

The second one, which i can't undestand, is that in the Sprite A i was using pSceneTouchEvent.getAction() to get the action, and in the second (sprite B) i used pSceneTouchEvent.getMotionEvent().getAction().

It seems like with getMotionEvent() couldn't get the ACTION_UP when using multiTouch, but without it, works.
GarethSadow
 
Posts: 2
Joined: Sat Dec 17, 2011 5:11 pm


Return to MultiTouch

Who is online

Users browsing this forum: No registered users and 2 guests