In the latest 3.0rc0 version,class EGLView has been renamed to GLView and function setMultipleTouchEnabled has gone!
I add the line into the AppController.mm and it worked!
[eaglView setMultipleTouchEnabled:YES];
Is it the proper place to enable multiple touch?
and during test, I noticed following error message frequently to be printed out,
“cocos2d: if the index doesn’t exist, it is an error”
Did I do something wrong?
The problem is that you cast UITouch array to int array in CCEAGLView.mm (line 433), but on arm64 pointer is 64 bits, not 32 and the values in the array are totally messed up.
I suggest you using void*/intptr_t (will be the size of pointer) or long long (always 64-bit) for touch ids instead of int.
You are now (commit ea6d4a3) including “#include <malloc.h>” in cpCollision.c, but there is no such file on OSX. Could you please revert it back to “#include <alloca.h>” or remove it at all, since alloca is not used anywhere and malloc is declared in stdlib.h?