VC#多鼠标 [英] VC# Multiple Mouse
问题描述
我如何分别获取附接到系统上的多个鼠标的x,y坐标和事件,并在winforms中唯一地标识鼠标.多重键盘又如何呢?
How can i seperately get x,y coordinates and events of multiple mouse attached to the system and identify the mouse uniquely in winforms. What about muliple keyboards as well
注意:我没有带多个游标...我带的只是一个钩子,它告诉了我
NOTE: i am not taking about multiple cursors... all i am taking about is some hook which tells me
- 我有
mouse 1
&moise 2
附加到系统上 - 并且将能够告诉
mouse 1
将其位置(x,y)更改为(x-1,y + 1)和mouse 2
将位置(x,y)更改为(x,y-1)
- that i have
mouse 1
&moise 2
attached to the system - and will be able to tell
mouse 1
changed its position (x,y) to (x-1,y+1) andmouse 2
changed position (x,y) to (x,y-1)
推荐答案
尝试 Microsoft MultiPoint SDK ,可让您连接多只鼠标并同时使用它们(我认为最多可以使用100只).
Try the Microsoft MultiPoint SDK which allows you to connect many mice and use them all at the same time (up to 100 I think).
开放源代码示例实现和
Example Open Source implementation and useful TUIO output from MultiPoint TUIO
这篇关于VC#多鼠标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!