mirror of https://github.com/axmolengine/axmol.git
27 lines
421 B
C
27 lines
421 B
C
|
#ifndef _KEYBOARD_TEST_H_
|
||
|
#define _KEYBOARD_TEST_H_
|
||
|
|
||
|
#include "cocos2d.h"
|
||
|
#include "../testBasic.h"
|
||
|
|
||
|
class KeyboardTest : public CCLayer
|
||
|
{
|
||
|
public:
|
||
|
KeyboardTest();
|
||
|
~KeyboardTest();
|
||
|
|
||
|
virtual void keyPressed(int keyCode);
|
||
|
virtual void keyReleased(int keyCode);
|
||
|
|
||
|
private:
|
||
|
CCLabelTTF* m_pLabel;
|
||
|
};
|
||
|
|
||
|
class KeyboardTestScene : public TestScene
|
||
|
{
|
||
|
public:
|
||
|
virtual void runThisTest();
|
||
|
};
|
||
|
|
||
|
#endif
|