Пример #1
0
void CCLayer::registerScriptKeypadHandler(int nHandler)
{
    unregisterScriptKeypadHandler();
    m_pScriptKeypadHandlerEntry = CCScriptHandlerEntry::create(nHandler);
    m_pScriptKeypadHandlerEntry->retain();
}
Пример #2
0
CCLayer::~CCLayer()
{
    unregisterScriptTouchHandler();
    unregisterScriptKeypadHandler();
    unregisterScriptAccelerateHandler();
}
Пример #3
0
void CCLayer::registerScriptKeypadHandler(ccScriptFunction func)
{
    unregisterScriptKeypadHandler();
    m_pScriptKeypadHandlerEntry = CCScriptHandlerEntry::create(func);
    CC_SAFE_RETAIN(m_pScriptKeypadHandlerEntry);
}