void CCLayer::registerScriptKeypadHandler(int nHandler) { unregisterScriptKeypadHandler(); m_pScriptKeypadHandlerEntry = CCScriptHandlerEntry::create(nHandler); m_pScriptKeypadHandlerEntry->retain(); }
CCLayer::~CCLayer() { unregisterScriptTouchHandler(); unregisterScriptKeypadHandler(); unregisterScriptAccelerateHandler(); }
void CCLayer::registerScriptKeypadHandler(ccScriptFunction func) { unregisterScriptKeypadHandler(); m_pScriptKeypadHandlerEntry = CCScriptHandlerEntry::create(func); CC_SAFE_RETAIN(m_pScriptKeypadHandlerEntry); }