keyhandler.cpp
来自「mopoid game symbian os application devel」· C++ 代码 · 共 37 行
CPP
37 行
/*
========================================================================
Name : KeyHandler.cpp
Author :
Copyright :
Description : Stores a flag for the movement of the panel.
License :
========================================================================
*/
#include "KeyHandler.h"
TKeyHandler::TKeyHandler()
:
iDirection(MopoidShared::ENoDirection)
{}
MopoidShared::TDirection TKeyHandler::GetDirection() const
{
return iDirection;
}
void TKeyHandler::LeftPressed()
{
iDirection = MopoidShared::ELeft;
}
void TKeyHandler::RightPressed()
{
iDirection = MopoidShared::ERight;
}
void TKeyHandler::NoDirection()
{
iDirection = MopoidShared::ENoDirection;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?