Added support for gamepad. Doesn't work yet though.