Multiple keyboards/ mice? .. for splitscreen

i wonder if anyone here knows if it is possible to use multiple keyboards/mice , and get different inputs from them?
a program?

i would like to create splitscreen “couch coop” mode in my game, its a PC game,

by default, when u plug in 2 keyboards or 2 mice, they both give identical inputs, therefore, when making splitscreen coop, the 2 players could mess with each other… or , just use 1 keyboard and have to basically hug each other LOL… be really close together.

also, in my games setup, i use mouse input… and 2 mice fighting each other, just doesnt work…

i found this HID macros
just now… havent read too much into it, i just found it… it looks like it may do what i want?

but i was wondering if any of you already have a solution to this in Unity? or know of any other programs capable of doing what i need.

thanks…

Yes. You need to get the raw input, before anything processes it, and handle it yourself. This means no acceleration, etc.

The methods of doing so vary, but they pretty much all involve custom drivers, which means that distributing the game is a nightmare. I found the info in a Google search.

Just use multiple joysticks as that’s supported right out of the box in Unity. Multi mice/keyboards is not the way to go.

yeah but i dont want to use joysticks / controllers or xbox controller…

they suck… theyre incapable of the actions of a mouse correctly… and lack the # of buttons of a keyboard…
(although on a controller, i could have when you press 1 button it changes the function of all other buttons… fyi )

LOL is it possible to hook a iphone/android to a PC and use its inputs??
… im guessing not… especially not with Unity LOL… but, you would think they would communicate Everything to each other(PC + tablet)… seems like an oversight if they do not haha… … or the technology is not to that point yet :stuck_out_tongue:
… like use the tablet to show inventory or stats or whatever… like wii u does that?? (not with tablet but you know)

…lol i dont have a smartphone at all, or wiiU…have a crappy Cheapo android that doesnt even want to communicate with Unity to make a build for whatever reason? (oh well not too interested in android dev anyway)

Hi,
attached is something that might be useful for this; a c# dll that can be used to get the x/y etc from multiple mice. main forumthread is here:small mono/csharp script based driver for multiple mice support in unity - Unity Engine - Unity Discussions

I hope its useful.

Best regards,

Robin

1758736–111373–RawMouseDriver.zip (31.2 KB)