VC#多鼠标 [英] VC# Multiple Mouse

查看:161
本文介绍了VC#多鼠标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何分别获取附接到系统上的多个鼠标的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) and mouse 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).

开放源代码示例实现和 TUIO 输出. codeplex.com/"rel =" nofollow noreferrer> MultiPoint TUIO

Example Open Source implementation and useful TUIO output from MultiPoint TUIO

这篇关于VC#多鼠标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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