There was one problem in Cocos2d-x (before version 3.14). If you wanted to use single touch in Android you must comment the code into Cocos2d-x. But when you will replace Cocos2d-x with the new version, you must remember to comment the code again. This article will answer to how disabled multitouch for all version of Cocos2d-x without commenting the code. How to disable multitouch by commenting the code discussed . here It is logical to assume that in order to solve this problem it is necessary to remove all touches with id greater than 0. How it to do? In Android all touches go through . Let’s consider the case with action touch down. Cocos2dxGLSurfaceView We need to use the touch with only. But there is one problem. is a private member and when we inherit , we can’t use . idDown == 0 mCocos2dxRenderer Cocos2dxGLSurfaceView mCocos2dxRenderer Let’s consider methods , and . Cocos2dxRender handleActionDown, handleActionMove handleActionUp handleActionCancel This methods use static methods of Cocos2dxRender: Fortunately, we use Java. In Java we can get access to private method. Let’s write the method for access to private method. Now we should inherit , use static methods of and cut touches. Full code of Cocos2dxGLSurfaceView Cocos2dxRender MyCocos2dxGLSurfaceView: And we should change method in onCreateView AppActivity.java After this problem, Cocos2d-x developers added a method in in version ≥3.14. And now the single touch is done like this: discussing setMultipleTouchEnabled Cocos2dxGLSurfaceView Ok. We have a single touch for different versions of the Cocos2d-x.