views:

286

answers:

4
+1  Q: 

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. 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
  • 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)
A: 

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 :)

Stu Mackellar
It seems possible to use multiple mouse cursors on Windows, although not very straightforward... See here: http://dailycomputersolutions.com/blog/index.php/2008/11/01/multiple-mouse-cursors-on-a-windows-desktop/
Thomas Levesque
I'm going to go ahead and have to upvote this since the "solution" to getting multiple mouse cursors is hacky and crufty at best.
Dave Markle
+4  A: 

check out this SO question.

Oliver
A: 

I checked through some of the SO "Related" Questions.

This looks very relevant to you.

maxwellb
+2  A: 

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

badbod99