⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 keyhandler.h

📁 mopoid game symbian os application development
💻 H
字号:
/*
========================================================================
 Name        : KeyHandler.h
 Author      : 
 Copyright   :
 Description : Stores a flag for the movement of the panel.
 License   : 
 
========================================================================
*/
#ifndef __KEYHANDLER_H__
#define __KEYHANDLER_H__

#include <e32std.h>
#include "MopoidSharedData.h"

/**
 * Stores the direction the player wants to move in. This is necessary
 * to create a continuous movement in the time between pressing and 
 * releasing the key.
 */
class TKeyHandler {

public:

    TKeyHandler();

    MopoidShared::TDirection GetDirection() const;

	void LeftPressed();
	void RightPressed();
	void NoDirection();

private:
    MopoidShared::TDirection iDirection;
};

#endif

⌨️ 快捷键说明

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