I think it was this one from amazon, it's been a couple years so I've switched my setup around and no longer use it, but at the time I was googling solutions and someone mentioned it so I just bought the cheapest one on amazon that fit my needs to test it out and it ended up working for me. However I'm sure if you search around now you'll find cheaper ones for sale that'll do the same job.
This one works for me (my 3 devices - TV, MiniNES, Chromecast): https://www.amazon.com/J-Tech-Digital-JTD3DSP0301-Wireless-Adapter/dp/B00JQP6PTK/ref=sr_1_1?ie=UTF8&qid=1488236967&sr=8-1&keywords=J-Tech+Digital+JTD3DSP0301+3-Port+High+Speed+HDMI+Switch+with+IR+Wireless+Remote+and+AC+Power+Adapter