GamepadAPI
From MozillaWiki
Web Gamepad API (Draft Recommendation)
Abstract
The HTML5 specification introduces many of the necessary components for rich interactive and game development, from <canvas> and WebGL to <audio> and <video>. At the same time, JavaScript implementations have matured to the point where they can now support many tasks which previously required native code. The Web Gamepad API presents a new way for web and game developers, as well as interaction designers, to access and use gamepads and other controllers for games.
This API is currently in Editor's Draft status at the W3C, and will be subject to change.
Authors
- Ted Mielczarek (@TedMielczarek)
- Scott Graham (@h4kr)
- Jason Orendorff (@jorendorff)
- David Humphrey (@humphd)
- Kevin Gadd (@antumbral)
API Tutorial
See the MDN docs and the hacks.mozilla.org post.