Hello everyone,
Is the Input System able to recognize 2 mice?
I’m thinking of a scenario where 2 players move their own crosshair on the same screen / camera.
Thank you.
Hello everyone,
Is the Input System able to recognize 2 mice?
I’m thinking of a scenario where 2 players move their own crosshair on the same screen / camera.
Thank you.
It seems like the input system doesn’t natively support multiple mice (I would be glad if someone more experienced can prove me wrong). From what I saw, you will either have to use packages like r̶e̶w̶i̶n̶d̶ or implement the logic yourself using a low level API to talk to the OS directly. I would recommend checking the following forums for ideas/solutions.
//update: rewind doesn’t support multiple mice. thanks guavaman.
Thanks for the response, I’ll check that out.
Rewired doesn’t support multiple independent mice or keyboards:
https://guavaman.com/projects/rewired/docs/FAQ.html#multiple-mice-and-keyboards
Most OSes trap and combine all keyboard and pointer inputs and present them as a single stream each. I don’t think Unity has anything that digs underneath that OS management to pick apart multiple keyboard or mouse devices that might be contributing.