IPad crashes when tapping with 10 fingers

IPad crashes when tapping with 10 fingers
0.0 0

#1

IPad crashes when tapping with 10 fingers.
Please correct “CCEAGLView-ios.mm”.
Tap beyond IOS_MAX_TOUCHES_COUNT to crash.


#2

The value is 10, why it crash tapping with 10 fingers? Should we need more than 10 touches?


#3

Crash when using ipad with 2 people.
iPad recognizes over 10 fingers.


#4

A simple example of correction:

for (UITouch *touch in touches) {

if(i>=IOS_MAX_TOUCHES_COUNT)
{
break;
}
}


#5

There is limit i think for 15 touches.

I’m assuming it is something related to same issue:


#6

Multi guys on one device!

Good case.


#7

I sent a PR to fix it: https://github.com/cocos2d/cocos2d-x/pull/18082