This standardises the use of the Gamepad API across browsers where possible using a Flash fallback.
- Internet Explorer: 9 or higher
- Chrome/Opera: latest and previous stable
- Konqueror: 4.11 or higher
- Firefox: latest and previous stable, ESR
Other browsers may work, but they will not be supported.
-
Calling
Object.prototype.toStringon aGamepad,GamepadButtonorGamepadEventbutton will return an incorrect value -
new GamepadEvent().gamepadis implemented as a data property on the instance itself, not a getter onGamepadEvent.prototype.gamepad. -
navigator.getGamepadsreturns a different object every time -
If
__proto__andObject.setPrototypeOfare not supported:constructorandtoStringwill be own properties on the instance instead of the prototype- The prototype of
GamepadEventinstances will beEvent.prototyperather than a custom prototype object
- Y axes are flipped (i.e. -1 is up, 1 is down), not sure if there is a way to fix this
- Flash IDs do not match those given by native Gamepad API implementations