Gamepad working, some small adjustments will probably be made later though.

Signed-off-by: Herman Rödström <herman@rodstrom.se>