Can someone tell me how to write a program that accepts input from 2 mice?

I am working on a game that requires input from 2 mice, at the same time (ie: think about two pointers on the same screen at the same time, each controlled by a different mouse).

I know that in Windows, for example, you can connect two [USB] mice to your PC at the same time and control the same pointer with either mouse. I am trying to take this idea a bit further than that and have each mouse control its own pointer.

If you have some hints on how to proceed, please let me know.

[502 byte] By [Harmonicaa] at [2007-11-26 16:59:53]
# 1

I would guess - and it is a guess so I could very well be wrong - that unless the operating system allows you to distinguish the two devices from one another then it will not be possible to create a Java application that accepts input from two mice. As I understand it, the events that an application reacts to originate in code that is at the machine level, in the operating system.

Tillermana at 2007-7-8 23:27:40 > top of Java-index,Java Essentials,Java Programming...
# 2
2 rodents?
mkoryaka at 2007-7-8 23:27:40 > top of Java-index,Java Essentials,Java Programming...
# 3
Try here http://www.michaelbuffington.com/articles/2003/07/21/multiple-mouse-cursorsThis gets a mention: http://cpnmouse.sourceforge.net/might be of some help
kikemellya at 2007-7-8 23:27:40 > top of Java-index,Java Essentials,Java Programming...