Sorry if this seems like kind of a crazy question, but I can't figure out how to search for it correctly on google.
Is it possible to have some setup of microcontrollers that can take two usb inputs and then output them through a single usb to a computer.
As an example:
Usb Keyboard -> Microcontroller One
USB Mouse -> Microcontroller Two
(Microcontroller One + Microcontroller Two) -> Microcontroller Three -> Computer
This may seem strange, but I am just looking on advice as to how I could get the third microcontroller to act as a slave to the computer and also receive data from the other two microcontrollers. Or just a separate way that could work as well.
Question may also be, why not... use a $4-5 hub, it seems a lot cheaper/easier.
Setting up an USB-host using arduino requires a special shield + writing your own drivers.
There might (I'm not that skilled yet) be an easier way if you could use a PS2 Mouse and keyboard.
As you haven't actually told us what you are trying to do it is difficult to provide a solution. All you have described is your proposed solution not the problem you are trying to solve.