2012-04-19 14:35:52 +08:00
|
|
|
#ifndef _KEYPAD_TEST_H_
|
|
|
|
#define _KEYPAD_TEST_H_
|
|
|
|
|
|
|
|
#include "cocos2d.h"
|
|
|
|
#include "../testBasic.h"
|
|
|
|
|
2013-06-20 14:17:10 +08:00
|
|
|
class KeypadTest : public Layer
|
2012-04-19 14:35:52 +08:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
KeypadTest();
|
|
|
|
~KeypadTest();
|
|
|
|
|
2013-11-20 11:21:30 +08:00
|
|
|
void onKeyReleased(EventKeyboard::KeyCode keycode, Event* event);
|
2012-04-19 14:35:52 +08:00
|
|
|
|
|
|
|
private:
|
2013-06-20 14:17:10 +08:00
|
|
|
LabelTTF* _label;
|
2012-04-19 14:35:52 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class KeypadTestScene : public TestScene
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void runThisTest();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|