The fact is the controller reading the joystick portalready knows what is plugged into it. So somewhere in the console ram or controller memory, a bit already exists identifying the controller type. The location of this bit needs to be identified so that Stella can map it as an input.
OK, go ahead. How long will it take?