Example #1
0
CControlView* CControlView::create(const char* pBaseBoard, const char* pJoystick)
{
	CControlView* pRet = new CControlView();
	if( pRet && pRet->initWithFile(pBaseBoard, pJoystick) )
	{
		pRet->autorelease();
		return pRet;
	}
	CC_SAFE_DELETE(pRet);
	return NULL;
}
Example #2
0
CControlView* CControlView::create()
{
	CControlView* pRet = new CControlView();
	if( pRet && pRet->init() )
	{
		pRet->autorelease();
		return pRet;
	}
	CC_SAFE_DELETE(pRet);
	return NULL;
}