Fix gamepad code to match latest spec
Merge pull request #1 from luser/gamepad-fixup

Fix gamepad code to match latest spec