mirror of https://github.com/axmolengine/axmol.git
49 lines
820 B
C++
49 lines
820 B
C++
|
#include "tests.h"
|
|||
|
#include "controller.h"
|
|||
|
#include "testBasic.h"
|
|||
|
#include "touch_dispatcher/CCTouchDispatcher.h"
|
|||
|
|
|||
|
TestController::TestController()
|
|||
|
{
|
|||
|
/**
|
|||
|
@todo <EFBFBD><EFBFBD><EFBFBD>Ӳ˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD>в<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
*/
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
void TestController::onEnter()
|
|||
|
{
|
|||
|
__super::onEnter();
|
|||
|
|
|||
|
setIsTouchEnabled(true);
|
|||
|
}
|
|||
|
|
|||
|
void TestController::registerWithTouchDispatcher()
|
|||
|
{
|
|||
|
CCTouchDispatcher::getSharedDispatcher()->addTargetedDelegate(dynamic_cast<CCLayer*>(this), 0, true);
|
|||
|
}
|
|||
|
|
|||
|
bool TestController::ccTouchBegan(CCTouch *pTouch, UIEvent *pEvent)
|
|||
|
{
|
|||
|
// <20><><EFBFBD><EFBFBD>ActionsTest
|
|||
|
TestScene* pScene = new ActionsTestScene();
|
|||
|
|
|||
|
pScene->runThisTest();
|
|||
|
return true;
|
|||
|
}
|
|||
|
|
|||
|
// CCScene* NextTest()
|
|||
|
// {
|
|||
|
//
|
|||
|
// }
|
|||
|
//
|
|||
|
// CCScene* PreTest()
|
|||
|
// {
|
|||
|
//
|
|||
|
// }
|
|||
|
//
|
|||
|
// CCScene* CurrentTest()
|
|||
|
// {
|
|||
|
//
|
|||
|
// }
|