Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

取消捕获和保存WM_MOUSEMOVE消息 #79

Open
royqh1979 opened this issue Feb 4, 2021 · 1 comment
Open

取消捕获和保存WM_MOUSEMOVE消息 #79

royqh1979 opened this issue Feb 4, 2021 · 1 comment

Comments

@royqh1979
Copy link
Collaborator

目前ege会捕获windows的WM_MOUSEMOVE消息,并保存在鼠标消息队列中,这存在几个问题:
(1)在典型的ege帧循环动画程序中,并不需要处理mouse move消息;只需要在每帧处理时用mousepos函数获取鼠标的当前位置即可;
(2)消息队列被大量的mousemove消息占据,需要响应mouse button down/up等消息时,必须取回并抛弃这些mousemove消息,浪费处理时间。

因此,建议在ege中取消捕获和保存WM_MOUSEMOVE消息。

@royqh1979
Copy link
Collaborator Author

或者学习qt,缺省只捕获鼠标按下时的WM_MOUSEMOVE消息;然后提供设置函数让有特殊需要的用户启用捕获任意WM_MOUSEMOVE消息。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant