• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 337
  • Last Modified:

Separating the signals of a USB mouse from another USB mouse, both connected to a PC using Delphi.

How can I separate the signals and get different positions of 2 different USB mouse connected to a PC using Delphi.
If this is not possible, how can I separate a USB mouse and a ps/2 mouse.
0
sad_man
Asked:
sad_man
1 Solution
 
robert_marquardtCommented:
Have a look at WM_INPUT message.
All other ways are barred because all physical mice are opened exclusively by the OS and their input is used to form the single virtual mouse of the system.
0
 
Wim ten BrinkCommented:
I've tried that, connecting more than one mouse to my system. It doesn't work since Windows will merge them into one single mouse device. The same is true for additional keyboards that can be connected to the system. The system itself will never detect the keyboard that the keys came from. If you want to separate the input from both devices then you'll need a better mouse-driver that would allow a dual-mouse mode. But I've never even heard of such a thing...
You can't even separate a serial mouse from a PS2 mouse or USB mouse... For the operating system, they all count as one single device.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now