hge source explor 0x4 input module
2016-05-21 18:29
316 查看
Input Module |
对于鼠标和键盘,输入信息用一个结构来处理,hge中的信息事件的结构
/* ** HGE Input Event structure */ struct hgeInputEvent { int type; // event type int key; // key code int flags; // event flags int chr; // character code int wheel; // wheel shift float x; // mouse cursor x-coordinate float y; // mouse cursor y-coordinate }; |
/* ** HGE Input Event flags */ #define HGEINP_SHIFT 1 #define HGEINP_CTRL 2 #define HGEINP_ALT 4 #define HGEINP_CAPSLOCK 8 #define HGEINP_SCROLLLOCK 16 #define HGEINP_NUMLOCK 32 #define HGEINP_REPEAT 64 |
hge_impl.h | int VKey; int Char; int Zpos; float Xpos; float Ypos; bool bMouseOver; bool bCaptured; char keyz[256]; CInputEventList* queue; |
char *KeyNames[] = { "?", "Left Mouse Button", "Right Mouse Button", "?", "Middle Mouse Button", "?", "?", "?", "Backspace", "Tab", "?", "?", "?", "Enter", "?", "?", "Shift", "Ctrl", "Alt", "Pause", "Caps Lock", "?", "?", "?", "?", "?", "?", "Escape", "?", "?", "?", "?", "Space", "Page Up", "Page Down", "End", "Home", "Left Arrow", "Up Arrow", "Right Arrow", "Down Arrow", "?", "?", "?", "?", "Insert", "Delete", "?", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "?", "?", "?", "?", "?", "?", "?", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "Left Win", "Right Win", "Application", "?", "?", "NumPad 0", "NumPad 1", "NumPad 2", "NumPad 3", "NumPad 4", "NumPad 5", "NumPad 6", "NumPad 7", "NumPad 8", "NumPad 9", "Multiply", "Add", "?", "Subtract", "Decimal", "Divide", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "Num Lock", "Scroll Lock", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "Semicolon", "Equals", "Comma", "Minus", "Period", "Slash", "Grave", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "Left bracket", "Backslash", "Right bracket", "Apostrophe", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?" };
KeyNames
相关文章推荐
- 详解Android动画之Frame Animation
- MongoDB服务无法启动,发生服务特定错误:100
- C++之类型转换
- 使用TraceView性能分析工具的方法
- 【oschina android源码分析】登陆和退出的设计
- 2016"百度之星" - 初赛(Astar Round2A)1006 Gym Class(优先队列+拓扑排序)
- 常用数据结构的功能及复杂度总结
- QCustomPlot鼠标点选折线上的
- pl/sql 复合类型,游标
- Struts2+Hibernate+Spring 整合示例==》Spring整合Struts2简单示例==》Spring整合Hibernate简单示例
- spring-mybatis版本的坑
- 第一章 JAVA入门(Android历史版本续1)
- 百度地图api通过地址显示地图,白名单
- Java ClassLoader基础及加载不同依赖 Jar 中的公共类
- 网页的渲染
- Android Reference官方描述
- 第一章 JAVA入门(Android历史版本续3)
- Struts2学习笔记
- java的三种构造器
- FontAwesome 奥森图标的学习