Martin O’Hanlon wanted a controller for his robot and settled on an XBox 360 wireless controller. He used a £5 USB dongle for the initial communication and then wrote a script in pygame to interface to the controller. You can read more and see the code here.