From 1d0deb0bc1b87198db0cd92885f28e8c21b7a273 Mon Sep 17 00:00:00 2001 From: GavinThornton Date: Tue, 12 Aug 2014 01:02:06 -0700 Subject: [PATCH] Update CCEventTouch.h MAX_TOUCHES=5 is less than most touch devices, iPad/Android tablets can almost all handle all 10-11 touches. Perhaps a value of 15 would be better? Note: There is a #define IOS_MAX_TOUCHES_COUNT 10 in CCEAGLView.mm already for this, but multitouch fails on touch 5 in "void GLViewProtocol::handleTouchesBegin" at the code:- // The touches is more than MAX_TOUCHES ? if (unusedIndex == -1) { CCLOG("The touches is more than MAX_TOUCHES, unusedIndex = %d", unusedIndex); continue; } --- cocos/base/CCEventTouch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/base/CCEventTouch.h b/cocos/base/CCEventTouch.h index 412db171a0..52bbbf9a2c 100644 --- a/cocos/base/CCEventTouch.h +++ b/cocos/base/CCEventTouch.h @@ -36,7 +36,7 @@ NS_CC_BEGIN class CC_DLL EventTouch : public Event { public: - static const int MAX_TOUCHES = 5; + static const int MAX_TOUCHES = 15; enum class EventCode {