How to disable multitouch

One way is just go to Cocos2dxGLSurfaceView.java file and go to onTouchEvent
Just comment the switch case case MotionEvent.ACTION_POINTER_DOWN:. No need to modify anything else. It worked for me.

//            case MotionEvent.ACTION_POINTER_DOWN:
//                final int indexPointerDown = pMotionEvent.getAction() >> MotionEvent.ACTION_POINTER_ID_SHIFT;
//                final int idPointerDown = pMotionEvent.getPointerId(indexPointerDown);
//                final float xPointerDown = pMotionEvent.getX(indexPointerDown);
//                final float yPointerDown = pMotionEvent.getY(indexPointerDown);
//
//                this.queueEvent(new Runnable() {
//                    @Override
//                    public void run() {
//                        Cocos2dxGLSurfaceView.this.mCocos2dxRenderer.handleActionDown(idPointerDown, xPointerDown, yPointerDown);
//                    }
//                });
//                break;
```
Cheers
6 Likes