After opening up a no-name USB switch ... output USB port. For the infrared remote control, [Meseta] dug into Lady Ada’s IR sensor tutorial and decoded buttons 1 through 4 on a Sky TV remote.
If there are more peripherals than there are ports on the switch, a USB hub can be connected to one of the switch ports. Sometimes, USB "switch" is used to refer to a USB hub, which does act like ...