java - Android multitouch strange bug when touch point reach limit -
i create application on android need multi-touch gesture! found devices novo 7 (ainol) supports 5 touch points. implement ontouch view this
public boolean ontouch(view v, motionevent event) { // todo auto-generated method stub if ((event.getaction() & motionevent.action_mask) == motionevent.action_pointer_down || event.getaction() == motionevent.action_down){ log.i("touch", "touch "+event.getpointercount() + " -- position " + event.getrawx()+","+event.getrawy()); } else if ((event.getaction() & motionevent.action_mask) == motionevent.action_pointer_up|| event.getaction() == motionevent.action_up){ log.i("touch up","pointer = "+event.getpointercount()); } homecoming true; }
at first, ok, log printed out 5 message. things happened when touch , release 6th point on screen. log re-printed out 5 message. can tell me going on here. sorry bad english language , if noob question! give thanks much!
----------- edited--------------------
after logging action_pointer_up , action_up, found out when 6th finger touch (touch down) screen, current pointers (5 pointers) release event (e.g action_up , action_pointer_up phone call on 5 previous pointers)! now, question is, how android process situation when limitation of touch point reach.
java android multi-touch
No comments:
Post a Comment