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-09-20 19:19:31 +08:00
|
|
|
virtual void onKeyReleased(EventKeyboard::KeyCode keycode, Event* event) override;
|
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
|