From bd3789e0b57b75a5aa4f8c3292d738656b4185f1 Mon Sep 17 00:00:00 2001 From: Dhilan007 Date: Wed, 20 Nov 2013 10:40:43 +0800 Subject: [PATCH] add miss api --- cocos/2d/CCLayer.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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) {