How to implement multi-touch gesture in android

I developed an application in which a cube is shown OpenGL ES, and when the user touches the screen and views it, the cube is transferred from one position to another (like the implementation of panning) - implemented usingglTranslatef()

I used MotionEvent.ACTION_MOVEwipes for this movement. Now my problem is that I want to implement this with multi-touch, so the user must use at least two fingers for this translation.

Already tried to use GestureDetector.SimpleOnGestureListenerand ScaleGestureDetector, but did not understand it.

Can anyone help me on this. Thanks in advance!

+5
source share

All Articles