processing-android icon indicating copy to clipboard operation
processing-android copied to clipboard

Multitouch: Identify current touch pointer not possible?

Open ProcWorld opened this issue 4 years ago • 1 comments

In the PApplet implementation (enqueueTouchEvent) the current pointer id is set with this: touchPointerId = event.getPointerId(0); But I think it must be taken from the action like this: touchPointerId = event.getPointerId((e.getAction() & MotionEvent.ACTION_POINTER_INDEX_MASK) >> MotionEvent.ACTION_POINTER_INDEX_SHIFT); Otherwise the id is taken always from the first pointer index that is not ensured to be the recent pointer.

ProcWorld avatar Dec 27 '20 17:12 ProcWorld

@ProcWorld I hope this article by Google Engineer will help you !

ranaaditya avatar Apr 01 '21 22:04 ranaaditya