First version of game pad code.