Initial gamepad work.
Merge branch 'master' into gamepad
Add gamepad support.
Merge branch 'gamepad'