YSTest
PreAlpha_b500_20140530
The YSLib Test Project
|
枚举 | |
enum | Category : KeyIndex { None = 0, Alphabetic = 1 << 1, Numeric = 1 << 2, Alphanumeric = Alphabetic | Numeric, Punctuation = 1 << 3, Character = Alphanumeric | Punctuation, Dead = 1 << 4, Lock = 2 << 4, Modifier = 3 << 4, Function = 4 << 4, Navigation = 5 << 4, Editing = 6 << 4, System = 7 << 4, IME = 8 << 4, OEM = 1 << 10, Menu = 1 << 11, Keypad = 1 << 12, NonKeyboard = 2 << 12, Composed = 1 << 14, Virtual = 2 << 14 } |
按键类别。 更多... | |
函数 | |
YF_API KeyIndex | FindFirstKeyInCategroy (const KeyInput &, KeyIndex) ynothrow |
找到第一个在指定类别的按键编码。 更多... | |
yconstfn | PDefH (bool, IsComposedKey, KeyIndex) ynothrow ImplRet( |
判断指定按键编码是否通过多个物理按键组合构成。 更多... | |
Category | ClassifyKey (KeyIndex code) ynothrow |
按键类别。
Category platform::KeyCategory::ClassifyKey | ( | KeyIndex | code | ) |
KeyIndex platform::KeyCategory::FindFirstKeyInCategroy | ( | const KeyInput & | keys, |
KeyIndex | cat | ||
) |
找到第一个在指定类别的按键编码。
参考 ClassifyKey(), platform::FindFirstKey() , 以及 platform::FindNextKey().
参考自 YSLib::UI::TextBox::TextBox(), YSLib::UI::GUIState::UpdateChar() , 以及 YSLib::UI::GUIState::Wrap().