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

平台相关的基本按键输入定义。 更多...

#include "YModules.h"
#include <YCLib/ycommon.h>
#include <bitset>
Keys.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

命名空间

 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
 本机按键编码。 更多...
 

详细描述

平台相关的基本按键输入定义。

版本
r556
作者
FrankHB frank.nosp@m.hb19.nosp@m.89@gm.nosp@m.ail..nosp@m.com
自从
build 313
创建时间:
2012-06-01 14:29:56 +0800
修改时间:
2014-04-14 11:00 +0800
文本编码:
UTF-8
模块名称:
YCLib::Keys

在文件 Keys.h 中定义.