Some guy wired a PS2 controller to his computers parallel port. Then he had it run through all of the button combinations at high speed to find all of the cheats for Grand Theft Auto: San Andreas.
How wonderfully methodical. The cheats can be found here. These guys also claim to have looked at the source code, although I’m sure they mean disassembly.