The way the devices are plugged in is mouse, keyboard controller > usb hub > xim apex > magic ns > switch. I've confirmed it working with an xbox one and ps4 pad but I had problems with an xbox 360 controller. As far as the paste codes you don't really need them. I had the best luck with the overwatch ST, mouse aim of 30, mouse x/y of 2.00 and creating a dummy alternate control profile to turn the view center button into a toggle.
Hope that helps.