【CEGUI】CEGUI入门篇之注入输入事件(五)
2017-04-13 13:08
274 查看
CEGUI中的事件通过CEGUI::InjectedInputReceiver处理,需要从外部注入输入事件,具体包括如下几个函数:
注入输入事件时通过GUIContext(继承自InjectedInputReceiver)实现,获取GUIContext的方法如下:
详细用法可参照http://static.cegui.org.uk/docs/0.8.7/input_tutorial.html
bool InjectedInputReceiver::injectMouseMove( float delta_x, float delta_y ); bool InjectedInputReceiver::injectMousePosition( float x_pos, float y_pos ); bool InjectedInputReceiver::injectMouseLeaves( void ); bool InjectedInputReceiver::injectMouseButtonDown( MouseButton button ); bool InjectedInputReceiver::injectMouseButtonUp( MouseButton button ); bool InjectedInputReceiver::injectKeyDown( Key::Scan scan_code ); bool InjectedInputReceiver::injectKeyUp( Key::Scan scan_code ); bool InjectedInputReceiver::injectChar( utf32 code_point ); bool InjectedInputReceiver::injectMouseWheelChange( float delta ); bool InjectedInputReceiver::injectTimePulse( float timeElapsed ); bool InjectedInputReceiver::injectMouseButtonClick( MouseButton button ); bool InjectedInputReceiver::injectMouseButtonDoubleClick( MouseButton button ); bool InjectedInputReceiver::injectMouseButtonTripleClick( MouseButton button );
注入输入事件时通过GUIContext(继承自InjectedInputReceiver)实现,获取GUIContext的方法如下:
CEGUI::GUIContext& context = CEGUI::System::getSingleton().getDefaultGUIContext();
详细用法可参照http://static.cegui.org.uk/docs/0.8.7/input_tutorial.html
相关文章推荐
- android跨进程事件注入(程序模拟用户输入)
- android跨进程事件注入(程序模拟用户输入)
- android跨进程事件注入(程序模拟用户输入)
- android跨进程事件注入(程序模拟用户输入,getevent与sendevent)
- android跨进程事件注入(程序模拟用户输入)
- android跨进程事件注入(程序模拟用户输入)
- Android inject input events 注入Touch 点(x, y) 触摸输入事件
- android跨进程事件注入(程序模拟用户输入)
- android跨进程事件注入(程序模拟用户输入)
- android跨进程事件注入(程序模拟用户输入)
- 关于登录时输入信息以后敲回车触发登录按钮的点击事件
- *setTimeout实现text输入在用户停顿时才调用事件!*
- [转]创建动态数据输入用户界面(ASP.NET 中的动态控件入门)
- Visual Studio 2005入门 之 Asp.Net中的事件(控件事件) [视频]
- webwork页面输入没有被注入的问题
- C#中委托,事件理解入门
- Visual Studio 2005入门 之 类的自定义事件[视频]
- 键盘输入的事件讨论
- VB.net入门(6):类~构造函数,事件
- Java语言入门 -- 第九章 Java的输入输出操作