YSTest
PreAlpha_b500_20140530
The YSLib Test Project
|
输入管理器。 更多...
#include <InputManager.h>
Public 成员函数 | |
InputManager () | |
void | DispatchInput (UI::IWidget &) |
向指定部件分发响应输入状态。 更多... | |
UI::IWidget * | Update () |
更新输入状态。 更多... | |
Private 属性 | |
std::reference_wrapper < UI::GUIState > | GUI_state |
Drawing::Point | cursor_state |
指针设备光标位置。 更多... | |
额外继承的成员函数 | |
![]() | |
noncopyable (const noncopyable &)=delete | |
禁止复制构造。 更多... | |
noncopyable & | operator= (const noncopyable &)=delete |
禁止赋值复制。 更多... | |
noncopyable ()=default | |
protected 构造:默认实现。 更多... | |
~noncopyable ()=default | |
protected 析构:默认实现。 更多... | |
YSLib::Devices::InputManager::InputManager | ( | ) |
在文件 InputManager.cpp 第 43 行定义.
void YSLib::Devices::InputManager::DispatchInput | ( | UI::IWidget & | ) |
向指定部件分发响应输入状态。
指定平台相关的用户界面输入处理。
在文件 InputManager.cpp 第 58 行定义.
参考 cursor_state, platform_ex::FetchKeyDownState(), platform_ex::FetchKeyState(), platform_ex::FetchKeyUpState() , 以及 GUI_state.
参考自 YSLib::Shells::GUIShell::OnGotMessage() , 以及 YSLib::DS::ShlDS::OnGotMessage().
IWidget * YSLib::Devices::InputManager::Update | ( | ) |
更新输入状态。
在文件 InputManager.cpp 第 109 行定义.
参考 cursor_state, platform_ex::FetchKeyState(), YSLib::Drawing::GBinaryGroup< SPos >::Invalid, platform_ex::UpdateKeyStates(), YSLib::Drawing::GBinaryGroup< _type >::X, YSLib::Drawing::GBinaryGroup< _type >::Y, YB_LIKELY , 以及 yunseq.
参考自 YSLib::Shells::GUIShell::OnGotMessage() , 以及 YSLib::DS::ShlDS::OnGotMessage().
|
private |
指针设备光标位置。
在文件 InputManager.h 第 54 行定义.
参考自 DispatchInput() , 以及 Update().
|
private |