HDMI switches connect several computers to a single television. That is, have different numbers of inputs and a single output. Both connections in as the HDMI output is connected by both its teams must have all HDMI connection.
There are manual and remote control switches for convenience selectors.
HDMI Hub Selector