On-Screen Controls

  ... information about changes and new features of AndEngine,

Re: On-Screen Controls

Postby Paul » Tue Jul 13, 2010 11:14 am

Well you can just program everything in the 1.5/1.6 sdk and make a note that if anyone wants to use multitouch, he should add this wrapper class.. or heck make it a whole new extension which requires 2.0+ sdk to be used.
Paul
 
Posts: 92
Joined: Sat Jun 26, 2010 3:00 pm

Re: On-Screen Controls

Postby Nicolas Gramlich » Tue Jul 13, 2010 5:36 pm

The problem is that some classes like the MenuScene i.e. utilize the ACTION_DOWN constant, which only used for the first 'TouchPoint', second/third/... get ACTION_POINTER_DOWN, so the changes are not so small.

I have to say that I don't like how Multitouch is implemented on Android :( . All TouchPoints are squeezed into one MotionEvent and that index and id stuff is not what I wish it would be like.

I'll probably go the way to split such MultiTouch-Events into seperate FingerEvent(or any other good name). This like the behaviour of a great MultiTouch library I've already worked with, called TUIO, which basically looks like this:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.         @Override
  2.         public void addTuioCursor(final TuioCursor pTuioCursor) {
  3.                 ...
  4.         }
  5.  
  6.         @Override
  7.         public void updateTuioCursor(final TuioCursor pTuioCursor) {
  8.                 ...
  9.         }
  10.  
  11.         @Override
  12.         public void removeTuioCursor(final TuioCursor pTuioCursor) {
  13.                 ...
  14.         }
Parsed in 0.031 seconds, using GeSHi 1.0.8.4


This would require changes to i.e. the OnSceneTouchListener but it might be worth it, for a loooooooooot cleaner and a loooooooooot easier to understand implementation.

I'm about to finish my bachelor thesis today and print it tomorrow, so I cannot change it anymore and start working on MultiTouch. :)

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

Re: On-Screen Controls

Postby Nicolas Gramlich » Tue Jul 13, 2010 9:57 pm

:D Works!!! *YAY*

Actually works pretty well on my Nexus. (Even though it shows the same problem with the 'broken' multitouch that we know from those youtube-videos.)

Still got some minor things to do for now, so I'll push it to the repository tonight or tomorrow.

Probably will make a video of this tonight and upload it to youtube.

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

Re: On-Screen Controls

Postby Nicolas Gramlich » Wed Jul 14, 2010 4:34 pm

Youtube currently fails at uploading/processing videos. They probably have some problems (or videos queued up) with the maintenance they had some hours ago.

I placed the MultiTouch into an extension, so AndEngine "core" is again 100,0% compatible with Android 1.6 .
Will push it to a new repository in some moments.

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

Re: On-Screen Controls

Postby ccassol » Tue Jan 11, 2011 9:18 pm

Never mind, I was using an older version of andengine. Keep up the good work!
ccassol
 
Posts: 1
Joined: Tue Jan 11, 2011 9:03 pm

Previous

Return to Updates

Who is online

Users browsing this forum: No registered users and 3 guests