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

按键输入设备。 更多...

#include <ydevice.h>

YSLib::Devices::KeyInputDevice 的协作图:

Public 类型

using Tester = std::function< bool(const KeyInput &, KeyIndex)>
 输入测试器:判断是否在指定索引上激活输入状态。 更多...
 

Public 成员函数

 KeyInputDevice (KeyIndex w=KeyBitsetWidth)
 
virtual DefDeDtor (KeyInputDevice) DefGetter(const ynothrow
 

Public 属性

virtual KeyIndex
 
virtual Width
 

Private 属性

KeyIndex width
 宽度:设备支持的按键编码上界(不含)。 更多...
 

详细描述

按键输入设备。

自从
build 490

在文件 ydevice.h91 行定义.

成员类型定义说明

using YSLib::Devices::KeyInputDevice::Tester = std::function<bool(const KeyInput&, KeyIndex)>

输入测试器:判断是否在指定索引上激活输入状态。

在文件 ydevice.h95 行定义.

构造及析构函数说明

YSLib::Devices::KeyInputDevice::KeyInputDevice ( KeyIndex  w = KeyBitsetWidth)
inlineexplicit

在文件 ydevice.h103 行定义.

参考 YAssert.

成员函数说明

virtual YSLib::Devices::KeyInputDevice::DefDeDtor ( KeyInputDevice  ) const
virtual

类成员变量说明

virtual YSLib::Devices::KeyInputDevice::KeyIndex

在文件 ydevice.h110 行定义.

KeyIndex YSLib::Devices::KeyInputDevice::width
private

宽度:设备支持的按键编码上界(不含)。

在文件 ydevice.h99 行定义.

virtual YSLib::Devices::KeyInputDevice::Width

在文件 ydevice.h110 行定义.


该类的文档由以下文件生成: