YSTest
PreAlpha_b500_20140530
The YSLib Test Project
|
平台相关的基本按键输入定义。 更多...
命名空间 | |
platform | |
默认平台命名空间。 | |
platform::KeyCategory | |
类型定义 | |
using | platform::KeyIndex = std::size_t |
按键索引类型:标识特定的按键在按键集合中的位置。 更多... | |
using | platform::KeyInput = std::bitset< KeyBitsetWidth > |
按键并行位宽。 更多... | |
枚举 | |
enum | platform::KeyCategory::Category : KeyIndex { platform::KeyCategory::None = 0, platform::KeyCategory::Alphabetic = 1 << 1, platform::KeyCategory::Numeric = 1 << 2, platform::KeyCategory::Alphanumeric = Alphabetic | Numeric, platform::KeyCategory::Punctuation = 1 << 3, platform::KeyCategory::Character = Alphanumeric | Punctuation, platform::KeyCategory::Dead = 1 << 4, platform::KeyCategory::Lock = 2 << 4, platform::KeyCategory::Modifier = 3 << 4, platform::KeyCategory::Function = 4 << 4, platform::KeyCategory::Navigation = 5 << 4, platform::KeyCategory::Editing = 6 << 4, platform::KeyCategory::System = 7 << 4, platform::KeyCategory::IME = 8 << 4, platform::KeyCategory::OEM = 1 << 10, platform::KeyCategory::Menu = 1 << 11, platform::KeyCategory::Keypad = 1 << 12, platform::KeyCategory::NonKeyboard = 2 << 12, platform::KeyCategory::Composed = 1 << 14, platform::KeyCategory::Virtual = 2 << 14 } |
按键类别。 更多... | |
函数 | |
YF_API KeyIndex | platform::FindFirstKey (const KeyInput &) ynothrow |
找到输入缓冲区记录中最小的按键编码。 更多... | |
YF_API KeyIndex | platform::FindNextKey (const KeyInput &, KeyIndex) ynothrow |
找到输入缓冲区记录中大于指定编码的最小的按键编码。 更多... | |
YF_API KeyIndex | platform::KeyCategory::FindFirstKeyInCategroy (const KeyInput &, KeyIndex) ynothrow |
找到第一个在指定类别的按键编码。 更多... | |
yconstfn | platform::KeyCategory::PDefH (bool, IsComposedKey, KeyIndex) ynothrow ImplRet( |
判断指定按键编码是否通过多个物理按键组合构成。 更多... | |
yconstexpr | platform::MapKeyChar |
yconstexpr | platform::PDefH (char, MapKeyChar, KeyIndex) ynothrow ImplRet(char()) yconstexpr PDefH(char |
映射按键到键入的字符。 更多... | |
yconstexpr const KeyInput KeyIndex ynothrow | platform::ImplRet (char()) namespace KeyCodes |
本机按键编码。 更多... | |
平台相关的基本按键输入定义。
在文件 Keys.h 中定义.