|
YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
函数 | |
| const platform::KeyInput & | FetchKeyState () |
| 取按键状态。 | |
| const platform::KeyInput & | FetchOldKeyState () |
| 取上一次更新的按键状态。 | |
| platform::KeyInput | FetchKeyDownState () |
| 取键按下状态。 | |
| platform::KeyInput | FetchKeyUpState () |
| 取键释放状态。 | |
| void | ClearKeyStates () |
| 清除按键缓冲。 | |
| void | UpdateKeyStates () |
| 更新按键状态。 | |
| void | WriteCursor (platform::CursorInfo &) |
| 写入当前指针设备信息。 | |
| void | WaitForKey (platform::KeyInput) |
| 等待掩码指定的按键。 | |
| void | WaitForKeypad () |
| 等待任意按键(除触摸屏、翻盖外)。 | |
| void | WaitForFrontKey () |
| 等待任意按键(除 L 、 R 和翻盖外)。 | |
| void | WaitForFrontKeypad () |
| 等待任意按键(除 L 、 R 、触摸屏和翻盖外)。 | |
| void | WaitForArrowKey () |
| 等待方向键。 | |
| void | WaitForABXY () |
| 等待按键 A 、 B 、 X 、 Y 键。 | |
| bool | IsDirectory (const ::dirent &d) |
| 判断 ::dirent 指定的节点是否为目录。 | |
| void | ResetVideo () |
| 复位屏幕显示模式。 | |
| platform::BitmapPtr | InitScrUp (int &) |
| 默认上屏初始化函数。 | |
| platform::BitmapPtr | InitScrDown (int &) |
| 默认下屏初始化函数。 | |
| void | ScreenSynchronize (platform::PixelType *, const platform::PixelType *) ynothrow |
| 快速刷新缓存映像到显示屏缓冲区。 | |
| bool | AllowSleep (bool) |
| 设置允许设备进入睡眠的标识状态。 | |
变量 | |
| platform::KeyInput | KeyState |
| 按键缓冲。 | |
| platform::KeyInput | OldKeyState |
| bool platform_ex::AllowSleep | ( | bool | ) |
设置允许设备进入睡眠的标识状态。
|
inline |
|
inline |
取键按下状态。
参考 FetchKeyState() , 以及 FetchOldKeyState().
参考自 InputManager::DispatchInput() , 以及 platform::WaitForInput().


|
inline |
取按键状态。
参考 KeyState.
参考自 InputManager::DispatchInput(),FetchKeyDownState(),FetchKeyUpState() , 以及 InputManager::Update().

|
inline |
取键释放状态。
参考 FetchKeyState() , 以及 FetchOldKeyState().
参考自 InputManager::DispatchInput().


|
inline |
取上一次更新的按键状态。
参考 OldKeyState.
参考自 FetchKeyDownState() , 以及 FetchKeyUpState().

| platform::BitmapPtr platform_ex::InitScrDown | ( | int & | ) |
默认下屏初始化函数。
| platform::BitmapPtr platform_ex::InitScrUp | ( | int & | ) |
默认上屏初始化函数。
|
inline |
判断 ::dirent 指定的节点是否为目录。
在文件 NativeAPI.h 第 82 行定义.
参考自 platform::HFileNode::IsDirectory(),YSLib::IO::Path::NormalizeTrailingSlash() , 以及 YSLib::IO::Path::operator/=().

| void platform_ex::ResetVideo | ( | ) |
| void platform_ex::ScreenSynchronize | ( | platform::PixelType * | , |
| const platform::PixelType * | |||
| ) |
快速刷新缓存映像到显示屏缓冲区。
| void platform_ex::UpdateKeyStates | ( | ) |
更新按键状态。
参考 platform::KeyBitsetWidth(),KeyState,OldKeyState,std::swap() , 以及 YCL_DEF_LOCKGUARD.
参考自 InputManager::Update() , 以及 platform::WaitForInput().


|
inline |
|
inline |
|
inline |
|
inline |
| void platform_ex::WaitForKey | ( | platform::KeyInput | ) |
等待掩码指定的按键。
参考自 WaitForABXY(),WaitForArrowKey(),WaitForFrontKey(),WaitForFrontKeypad() , 以及 WaitForKeypad().

|
inline |
| void platform_ex::WriteCursor | ( | platform::CursorInfo & | tp | ) |
写入当前指针设备信息。


| platform::KeyInput platform_ex::KeyState |
| platform::KeyInput platform_ex::OldKeyState |