keyhandler.h

来自「series60 应用程序开发的源代码 series60 应用程序开发的源代码」· C头文件 代码 · 共 39 行

H
39
字号
#ifndef _KEYHANDLER_H_
#define _KEYHANDLER_H_

// INCLUDES

// System includes
#include <e32std.h>

// CLASS DECLARATION

/**
*
* @class    TKeyHandler KeyHandler.h
* @brief    This class is used to record the current state of the device keys
*
* Copyright (c) EMCC Software Ltd 2003
* @version    1.0
*
*/

class TKeyHandler
{
public:
    enum TKeyState 
    {
        ELeft = 0x01,
        ERight = 0x02,
        EFire = 0x04
    };

    TKeyHandler();
    TInt State() const;
    void SetState(TKeyState aKey, TBool aState);

private:
    TInt iDirection;
};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?