diff --git a/cocos/2d/CCLayer.cpp b/cocos/2d/CCLayer.cpp index bad7b63c43..e7fe6f5342 100644 --- a/cocos/2d/CCLayer.cpp +++ b/cocos/2d/CCLayer.cpp @@ -127,6 +127,12 @@ int Layer::executeScriptTouchesHandler(EventTouch::EventCode eventType, const st #pragma warning (disable: 4996) #endif +/// isTouchEnabled getter +bool Layer::isTouchEnabled() const +{ + return _touchEnabled; +} + /// isTouchEnabled setter void Layer::setTouchEnabled(bool enabled) {