This site gives you detailed circuit diagrams for TV game controllers ranging from the Atari 2600 (circuit diagram above) to the Sony Playstation. Very useful if you want to repurpose one controller to use on a different system or if you just like taking things apart MAKE style.

TV Game joysticks – Link