简体   繁体   English

VC#Multiple Mouse

[英]VC# Multiple Mouse

How can i seperately get x,y coordinates and events of multiple mouse attached to the system and identify the mouse uniquely in winforms. 如何单独获取连接到系统的多个鼠标的x,y坐标和事件,并在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 注意:我没有采取多个游标...我正在采取的是一些钩子告诉我

  • that i have mouse 1 & moise 2 attached to the system 我将mouse 1moise 2连接到系统上
  • 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) 并且能够告诉mouse 1将其位置(x,y)更改为(x-1,y + 1)并且mouse 2将位置(x,y)更改为(x,y-1)

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). 尝试Microsoft MultiPoint SDK ,它允许您连接许多鼠标并同时使用它们(我认为最多100个)。

Example Open Source implementation and useful TUIO output from MultiPoint TUIO 示例开源实现和MultiPoint TUIO的有用TUIO输出

If you have more than one mouse or pointing device attached to the system then they'll all control the same, single cursor. 如果你有多个鼠标或指针设备连接到系统,那么他们都将控制相同的单个光标。 Hence the coordinates will be the same for all devices. 因此,所有设备的坐标都是相同的。

Keyboards don't have coordinates as far as I'm aware :) 据我所知,键盘没有坐标:)

I checked through some of the SO "Related" Questions. 我查看了一些SO“相关”问题。

This looks very relevant to you. 看起来与你非常相关。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM