YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
InputManager.h
浏览该文件的文档.
1 /*
2  © 2012-2013 FrankHB.
3 
4  This file is part of the YSLib project, and may only be used,
5  modified, and distributed under the terms of the YSLib project
6  license, LICENSE.TXT. By continuing to use, modify, or distribute
7  this file you indicate that you have read the license and
8  understand and accept it fully.
9 */
10 
28 #ifndef INC_Helper_InputManager_h_
29 #define INC_Helper_InputManager_h_ 1
30 
31 #include "YModules.h"
32 #include YFM_Helper_YGlobal
33 #include YFM_YSLib_UI_YGUI
34 
35 namespace YSLib
36 {
37 
38 namespace Devices
39 {
40 
46 {
47 private:
49  std::reference_wrapper<UI::GUIState> GUI_state;
55 #if YF_Hosted
56 
60  std::reference_wrapper<Host::Environment> env;
61 #endif
62 
63 public:
64  InputManager();
65 
72  void
73  DispatchInput(UI::IWidget&);
74 
81  UI::IWidget*
82  Update();
83 };
84 
85 } // namespace Devices;
86 
87 } // namespace YSLib;
88 
89 #endif
90 
std::reference_wrapper< UI::GUIState > GUI_state
Definition: InputManager.h:49
#define YF_API
Definition: Platform.h:64
Drawing::Point cursor_state
指针设备光标位置。
Definition: InputManager.h:54
不可复制对象:禁止派生类调用默认原型的复制构造函数和复制赋值操作符。
Definition: utility.hpp:75
输入管理器。
Definition: InputManager.h:45