如何区分不同鼠标的事件来源? [英] How to distinguish the source of event from different mouses?

查看:231
本文介绍了如何区分不同鼠标的事件来源?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个鼠标,带有全局钩子,可以获取两个鼠标的鼠标事件.
但是我无法找到事件的来源.
它不包含在MouseHookStruct中.
有解决这个问题的线索吗?
非常感谢.

I have two mouse, with global hook, I can get the mouse event of the two mouses.
But I cannot find out the source of the event.
It is not included in the MouseHookStruct.
Does any have a clue for solving such problem?
Thank a lot.

推荐答案

我认为您必须使用 ^ ]做到这一点,只有编程为处理多只鼠标的应用程序才能知道使用了哪只鼠标.

否则,我认为该信息在用户模式代码中不可用.
I think you have to use the MultiPoint Mouse SDK[^] to do that and only the application programmed to handle multiple mouses would be able to know which mouse was used.

Otherwise, I don''t think the information is available in user mode code.


这篇关于如何区分不同鼠标的事件来源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆