From f1f2ce4868894a736183be085d1842236db0c3dd Mon Sep 17 00:00:00 2001 From: PP Date: Fri, 8 Jun 2018 15:09:24 +0800 Subject: [PATCH] add inputManager into _cc (#2836) --- cocos2d/core/platform/CCInputManager.js | 1 + index.js | 3 +++ 2 files changed, 4 insertions(+) diff --git a/cocos2d/core/platform/CCInputManager.js b/cocos2d/core/platform/CCInputManager.js index 0c0de247d1..63a34acbdc 100644 --- a/cocos2d/core/platform/CCInputManager.js +++ b/cocos2d/core/platform/CCInputManager.js @@ -610,5 +610,6 @@ js.get(cc, 'inputManager', function () { cc.warnID(1405, 'cc.inputManager', 'cc.systemEvent'); return inputManager; }); +_cc.inputManager = inputManager; module.exports = inputManager; diff --git a/index.js b/index.js index e8dc964b49..9aedc46284 100644 --- a/index.js +++ b/index.js @@ -153,6 +153,9 @@ cc = {}; // The namespace for original nodes rendering in scene graph. _ccsg = {}; +// For internal usage +_cc = {}; + if (CC_DEV) { /** * contains internal apis for unit tests