YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
平台相关的扩展输入接口。 更多...
类 | |
struct | platform::CursorInfo |
屏幕指针设备光标信息。 更多... | |
命名空间 | |
namespace | platform |
默认平台命名空间。 | |
namespace | platform_ex |
宏定义 | |
#define | YCL_CURSOR_X px |
#define | YCL_CURSOR_Y py |
#define | YCL_KEY(X) KeyCodes::X |
#define | YCL_KEY_Start KeyCodes::Start |
#define | YCL_KEYSTATE_DIRECT 1 |
函数 | |
void | platform::WaitForInput () |
等待任意按键。 | |
const platform::KeyInput & | platform_ex::FetchKeyState () |
取按键状态。 | |
const platform::KeyInput & | platform_ex::FetchOldKeyState () |
取上一次更新的按键状态。 | |
platform::KeyInput | platform_ex::FetchKeyDownState () |
取键按下状态。 | |
platform::KeyInput | platform_ex::FetchKeyUpState () |
取键释放状态。 | |
void | platform_ex::ClearKeyStates () |
清除按键缓冲。 | |
void | platform_ex::UpdateKeyStates () |
更新按键状态。 | |
void | platform_ex::WriteCursor (platform::CursorInfo &) |
写入当前指针设备信息。 | |
void | platform_ex::WaitForKey (platform::KeyInput) |
等待掩码指定的按键。 | |
void | platform_ex::WaitForKeypad () |
等待任意按键(除触摸屏、翻盖外)。 | |
void | platform_ex::WaitForFrontKey () |
等待任意按键(除 L 、 R 和翻盖外)。 | |
void | platform_ex::WaitForFrontKeypad () |
等待任意按键(除 L 、 R 、触摸屏和翻盖外)。 | |
void | platform_ex::WaitForArrowKey () |
等待方向键。 | |
void | platform_ex::WaitForABXY () |
等待按键 A 、 B 、 X 、 Y 键。 | |
变量 | |
platform::KeyInput | platform_ex::KeyState |
按键缓冲。 | |
platform::KeyInput | platform_ex::OldKeyState |
平台相关的扩展输入接口。
在文件 Input.h 中定义.
#define YCL_CURSOR_X px |
#define YCL_CURSOR_Y py |