Hello Everybody,
I try to get the input from two usb-mice to move in a 3D-World(LWJGL). So far no problem, but is there a way to identify the Mice? Everytime the Program starts, the Mice change there Position.
for(int i=0;i<controllers.length;i++) {
if(controllers[i].getType()==Controller.Type.MOUSE) {
if(firstMouse==null){
firstMouse = controllers[i];
}
else if(secondMouse==null)secondMouse = controllers[i];
else thirdMouse= controllers[i];
}
}
I tryed to get the portnumber, but they are alle the same for every mouse.
I´m working on Windows 7 and XP.
My second Problem is that the Windows cursor is moved by all mice. Is there a way to stop that? The Windows cursor should only listen to the first mouse.
thanks for help