YSTest  PreAlpha_b400_20130424
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
platform_ex 命名空间参考

函数

const platform::KeyInputFetchKeyState ()
 取按键状态。
 
const platform::KeyInputFetchOldKeyState ()
 取上一次更新的按键状态。
 
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  )

设置允许设备进入睡眠的标识状态。

返回
旧状态。
注解
默认状态为 true 。
警告
非线程安全。
自从
build 278
void platform_ex::ClearKeyStates ( )
inline

清除按键缓冲。

自从
build 299

在文件 Input.h184 行定义.

参考 KeyState,OldKeyState , 以及 yunseq().

函数调用图:

platform::KeyInput platform_ex::FetchKeyDownState ( )
inline

取键按下状态。

自从
build 299

在文件 Input.h190 行定义.

参考 FetchKeyState() , 以及 FetchOldKeyState().

参考自 InputManager::DispatchInput() , 以及 platform::WaitForInput().

函数调用图:

这是这个函数的调用关系图:

const platform::KeyInput & platform_ex::FetchKeyState ( )
inline

取按键状态。

自从
build 321

在文件 Input.h172 行定义.

参考 KeyState.

参考自 InputManager::DispatchInput(),FetchKeyDownState(),FetchKeyUpState() , 以及 InputManager::Update().

这是这个函数的调用关系图:

platform::KeyInput platform_ex::FetchKeyUpState ( )
inline

取键释放状态。

自从
build 299

在文件 Input.h196 行定义.

参考 FetchKeyState() , 以及 FetchOldKeyState().

参考自 InputManager::DispatchInput().

函数调用图:

这是这个函数的调用关系图:

const platform::KeyInput & platform_ex::FetchOldKeyState ( )
inline

取上一次更新的按键状态。

自从
build 321

在文件 Input.h178 行定义.

参考 OldKeyState.

参考自 FetchKeyDownState() , 以及 FetchKeyUpState().

这是这个函数的调用关系图:

platform::BitmapPtr platform_ex::InitScrDown ( int &  )

默认下屏初始化函数。

platform::BitmapPtr platform_ex::InitScrUp ( int &  )

默认上屏初始化函数。

bool platform_ex::IsDirectory ( const ::dirent &  d)
inline

判断 ::dirent 指定的节点是否为目录。

自从
build 312

在文件 NativeAPI.h82 行定义.

参考自 platform::HFileNode::IsDirectory(),YSLib::IO::Path::NormalizeTrailingSlash() , 以及 YSLib::IO::Path::operator/=().

这是这个函数的调用关系图:

void platform_ex::ResetVideo ( )

复位屏幕显示模式。

参考自 InitVideo().

这是这个函数的调用关系图:

void platform_ex::ScreenSynchronize ( platform::PixelType ,
const platform::PixelType  
)

快速刷新缓存映像到显示屏缓冲区。

注解
第一参数为显示屏缓冲区,第二参数为源缓冲区。
自从
build 319
void platform_ex::UpdateKeyStates ( )

更新按键状态。

自从
build 299

在文件 Input.cpp126 行定义.

参考 platform::KeyBitsetWidth(),KeyState,OldKeyState,std::swap() , 以及 YCL_DEF_LOCKGUARD.

参考自 InputManager::Update() , 以及 platform::WaitForInput().

函数调用图:

这是这个函数的调用关系图:

void platform_ex::WaitForABXY ( )
inline

等待按键 A 、 B 、 X 、 Y 键。

在文件 Input.h266 行定义.

参考 WaitForKey().

函数调用图:

void platform_ex::WaitForArrowKey ( )
inline

等待方向键。

在文件 Input.h257 行定义.

参考 WaitForKey().

函数调用图:

void platform_ex::WaitForFrontKey ( )
inline

等待任意按键(除 L 、 R 和翻盖外)。

在文件 Input.h235 行定义.

参考 WaitForKey().

函数调用图:

void platform_ex::WaitForFrontKeypad ( )
inline

等待任意按键(除 L 、 R 、触摸屏和翻盖外)。

在文件 Input.h246 行定义.

参考 WaitForKey().

函数调用图:

void platform_ex::WaitForKey ( platform::KeyInput  )

等待掩码指定的按键。

自从
build 298

参考自 WaitForABXY(),WaitForArrowKey(),WaitForFrontKey(),WaitForFrontKeypad() , 以及 WaitForKeypad().

这是这个函数的调用关系图:

void platform_ex::WaitForKeypad ( )
inline

等待任意按键(除触摸屏、翻盖外)。

在文件 Input.h224 行定义.

参考 WaitForKey().

函数调用图:

void platform_ex::WriteCursor ( platform::CursorInfo tp)

写入当前指针设备信息。

自从
build 272

在文件 Input.cpp147 行定义.

参考 YB_LIKELY , 以及 yunseq().

参考自 InputManager::Update().

函数调用图:

这是这个函数的调用关系图:

变量说明

platform::KeyInput platform_ex::KeyState

按键缓冲。

自从
build 299

参考自 ClearKeyStates(),FetchKeyState() , 以及 UpdateKeyStates().

platform::KeyInput platform_ex::OldKeyState