MultiTouch

  ... the case you feel the need for a new feature or want to submit one.

MultiTouch

Postby cpasjuste » Wed Jun 23, 2010 1:59 pm

Hello, AndEngine do not seems to support multitouch, which make difficult to write an advanced control system. Would it be difficult to implement this ?

Thanks,
David.
cpasjuste
 
Posts: 63
Joined: Tue Jun 22, 2010 3:18 pm

Re: MultiTouch

Postby Nicolas Gramlich » Thu Jun 24, 2010 1:39 pm

Hi,

yes, AndEngine does not (yet) support MultiTouch. Currently you would have to implement it yourself.
Maybe have a look at the IOnSceneTouchListener, which gives you the 'original' MotionEvents converted to SceneCoordinates (Indentical with the MotionEvents generatre by the System, only coordinates have changed).
http://code.google.com/p/andengine/sour ... tener.java
Apply such a listener to a Scene:
http://code.google.com/p/andengine/sour ... e.java#144

If you'd really want to, you could even set an Android-OnTouchListener to the protected mRenderSurfaceView of BaseGameActivity:
http://code.google.com/p/andengine/sour ... ty.java#37

Hope this helped.

Best Regards,
Nicolas
Nicolas Gramlich
Site Admin
 
Posts: 1734
Joined: Mon Jun 07, 2010 6:20 pm
Location: Schriesheim, Germany


Return to Features

Who is online

Users browsing this forum: No registered users and 6 guests