There are probably many ways to implement that. An USB concept for it: http://www.wired.com/gadgetlab/2011/01/double-usb-plug-conce...