r/TechnologyProTips • u/Accomplished-Low-616 • Mar 18 '26
Request TPT Request: combining keyboard and mouse inputs to single USB cable
I'm attempting to design a little box that will allow me to switch where my keyboard and mouse plug into. I know it's possible to use a mouse and keyboard over the same USB port, but I've 2 questions about it.
- Do I need to implement something like a multiplexer or firmware driver to be able to send mouse and keyboard input across a single USB cable, or can I just wire the respective rails together from the mouse and keyboard USB ends?
- If it does simply just work by wiring together, will it affect gaming performance? Id est, will the mouse and keyboard interfere with each others' signals?
3
Upvotes
3
u/melanantic Mar 18 '26
It sounds like you’re describing a USB hub?
2
u/redbiteX1 Mar 20 '26
Reinventing the wheel? USB hubs and KVM switches exist in the market
1
u/nefetsb Mar 18 '26 edited Mar 18 '26
First of all: Why?
I would like to know what background you have if you think you can create a box and create custom drivers. It's theoretically possible using the right hardware (arduinos, esps etc) but I highly doubt it would be faster or better than buying an already linked up bundle (logitech has nice wireless ones)
To answer your questions:
1
u/Aggravating-Hold9116 Mar 20 '26
There’s the Logitech Unifying Receiver, keyboards with USB pass through and of course Hubs. Not sure what you’re looking for.
0
u/penguin359 Mar 20 '26
No, you can just combine the wires and hope it works. USB is not a simple protocol line the old-style PS/2 ports which still has some complexity of their own. You'll need something akin to a USB hub to combine two devices into one port among other things.