Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Im thinking of making a game that requires two mice to play. It needs to register the movement separately from one another. Is this possible? Or does the Windows architecture not allow for such things?

Thank you.

share|improve this question

closed as off-topic by Byte56 Nov 26 '14 at 17:47

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions about "how to get started," "what to learn next," or "which technology to use" are discussion-oriented questions which involve answers that are either based on opinion, or which are all equally valid. Those kinds of questions are outside the scope of this site. Visit our help center for more information." – Byte56
If this question can be reworded to fit the rules in the help center, please edit the question.

I don't think its possible, when you plug a mouse to a laptop you only have one mouse pointer. – eiefai Feb 17 '12 at 2:43
I'm pretty sure I've seen demos using two mice. – jhocking Feb 17 '12 at 3:09
People don't have usually more than one mouse plugged on their PC, but good question. – Gustavo Maciel Feb 17 '12 at 3:42
I know it's possible because I have used an API that did this, sadly this was many years ago and I can't find a link. It allowed up to 4 mice and keyboards plugged in to the same machine and when your application detected inputs, it would indicate which mouse or keyboard did the action, and it also drew multiple cursors on the screen. – John McDonald Feb 17 '12 at 4:52

Turns out you're in luck, kind of. Because mice are just another kind of HID (human interface device) you can plug in as many as you want, but custom software is required to actually do anything with them. Beyond that link is a page to Microsoft's research called Multipoint and examples of how it was used.

share|improve this answer
The top answer in that question links to vaporware, phantomware, and an academic article on ergonomics from 2004. There are no real solutions here. – Cheezmeister Mar 30 '15 at 10:27

Yes. Multiple mouse input is possible. Here are some example games.

Quick explanation:

You don't need any special API or code to use Mouse Party. You can implement it yourself using standard Windows APIs. Reflexive games use Raw Input which is a standard API built into Windows XP.

With sample code (zip file).

share|improve this answer

I found the library that I used back in the day. Yay!

It's designed for use with .Net and XP, but the DLL works on my Win7 64-bit machine. The DLL has some quirks, but at a minimum, it's a proof of concept, and it's documented.

Edit: Not sure I'd recommend using this library these days, the other answers seem to provide some more recent, and probably cleaner results.

share|improve this answer

Something for recent inquisitions, this is still in beta and works pretty well. Get the free beta download here:

share|improve this answer
Why the downvote? Nothing to say about what I shared? I landed here while researching this very capability and found that the solutions above were either costly or no longer in service. The option that I provided works for multiple inputs and for free. Just trying to help, no need to downvote and run... – StaticVoid Dec 24 '14 at 14:50

Not the answer you're looking for? Browse other questions tagged or ask your own question.