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.toString
on aGamepad
,GamepadButton
orGamepadEvent
button will return an incorrect value -
new GamepadEvent().gamepad
is implemented as a data property on the instance itself, not a getter onGamepadEvent.prototype.gamepad
. -
navigator.getGamepads
returns a different object every time -
If
__proto__
andObject.setPrototypeOf
are not supported:constructor
andtoString
will be own properties on the instance instead of the prototype- The prototype of
GamepadEvent
instances will beEvent.prototype
rather 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