kallaspriit/HTML5-JavaScript-Gamepad-Controller-Library — pull request #18 by mildmojo (2014-06-07 06:31:53+00:00)
Title: Updates button getter for new GamepadButton API

Modern Firefox has aligned with the W3C Gamepad API spec, which
calls for `gamepad.buttons` to be an array of GamepadButton objects
rather than button state values. This adds support for that API.

I'm working on a patch to correctly map the PS4 Dualshock 4 controller, too, just need to make sure it behaves correctly on all platforms.