X11 鼠标拖拽事件

mozei 2011-11-06 12:59:28
哪个对应于WINDOWS下的MOUSEMOVE时间(左键按住不放&拖动)
/* Event names.  Used in "type" field in XEvent structures.  Not to be
confused with event masks above. They start from 2 because 0 and 1
are reserved in the protocol for errors and replies. */

#define KeyPress 2
#define KeyRelease 3
#define ButtonPress 4
#define ButtonRelease 5
#define MotionNotify 6
#define EnterNotify 7
#define LeaveNotify 8
#define FocusIn 9
#define FocusOut 10
#define KeymapNotify 11
#define Expose 12
#define GraphicsExpose 13
#define NoExpose 14
#define VisibilityNotify 15
#define CreateNotify 16
#define DestroyNotify 17
#define UnmapNotify 18
#define MapNotify 19
#define MapRequest 20
#define ReparentNotify 21
#define ConfigureNotify 22
#define ConfigureRequest 23
#define GravityNotify 24
#define ResizeRequest 25
#define CirculateNotify 26
#define CirculateRequest 27
#define PropertyNotify 28
#define SelectionClear 29
#define SelectionRequest 30
#define SelectionNotify 31
#define ColormapNotify 32
#define ClientMessage 33
#define MappingNotify 34
#define GenericEvent 35
#define LASTEvent 36


我的意思是,我程序里有一个MOUSEMOVE的接口,对应左键按下不放&拖动时的事件。我想要把这个事件接到X11(X window)里,但没有找到直接的MOUSEMOVE case.
有吗?我用KeyPress +MotionNotify,不行
...全文
365 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
心死 2011-11-14
  • 打赏
  • 举报
回复
不了解,悲剧。
mozei 2011-11-14
  • 打赏
  • 举报
回复
坑爹。两个论坛都没人回答。
没有人谢过 X11的程序?

23,120

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧