sgraham/gamepad.js — pull request #6 by thejustinwalsh (2012-07-11 17:44:39+00:00)
Title: Chrome Canary OSX and Xbox360 Controller Mappings

Not sure if chrome has changed their mappings from the initial version you built gamepad.js against, but when running on OS X against the latest canary build all of the xbox360 mappings are off.

I've merged the changes into my fork of gh-pages as well so you can test it out the latest code here...
http://thejustinwalsh.github.com/gamepad.js/example/

In addition to fixing the Xbox360 mappings, I also merged the Logitech controller into the proper source file.

Please let me know if these mappings are different for you in other versions of chrome, if they are we may need to take the browsers version number from the navigator.userAgent string into account to provide a better mapping experience.