I take that back, I also rewired a gamecube controller so that I could remove the end and flip a little switch that would allow me to use the controller for both ps2 and gamecube, and wii, but thats an automatic.
wait.
thats not really much programming is it, thats more messing around with the wires and the insides of the controller....