diff --git a/extensions/CCBReader/CCNodeLoader.cpp b/extensions/CCBReader/CCNodeLoader.cpp index e86c900d9a..24c7fb320a 100644 --- a/extensions/CCBReader/CCNodeLoader.cpp +++ b/extensions/CCBReader/CCNodeLoader.cpp @@ -35,17 +35,20 @@ void CCNodeLoader::parseProperties(CCNode * pNode, CCNode * pParent, CCBReader * { setProp = true; } -#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) + // Cocos2d-x is using touch event callback for all platforms, + // it's different from cocos2d-iphone which uses mouse event for Mac port. + // So we just need to touch event by using kCCBPlatformIOS. +//#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) if(platform == kCCBPlatformIOS) { setProp = true; } -#elif (CC_TARGET_PLATFORM == CC_PLATFORM_MAC) - if(platform == kCCBPlatformMac) - { - setProp = true; - } -#endif +// #elif (CC_TARGET_PLATFORM == CC_PLATFORM_MAC) +// if(platform == kCCBPlatformMac) +// { +// setProp = true; +// } +// #endif // Forward properties for sub ccb files if (dynamic_cast(pNode) != NULL)