Touch Event issue


#1

Sometimes , we want to diable multi touches , We can just add CCTargetedTouchDelegate , But in android , it’s not so perfect, for example:
step 1:
add a CCLOG in ccTouchEnded method
step 2:
touch screen with one finger , and Holding.
step 3:
touch screen with another finger .

result:
CCLOG will appear 2 times , one finger one times.
fix:
easily add “if (pointerNumber > 1) return false;” to Cocos2dxGLSurfaceView.java onTouchEvent method line number 198.


#2

Yep, you are right.
Thank you for your sharing.