Modified from Controller.js 1.0.2 to add support for Buzz quiz controller layout and lights.
A library designed to make the Gamepad API easier to use for non-gaming applications.
→ Documentation
→ Try it out now
-
Download the lastest build.
-
Unpack the ZIP file and copy the library, layouts add-on, and Buzz controller to your project files.
-
Include them before your closing
<body>
tag:<script src="path/to/Controller.min.js"></script> <script src="path/to/Controller.layouts.min.js"></script> <script src="path/to/BuzzController.min.js"><script>
-
Start listening for gamepads with
BuzzController.search()
. -
Read the documentation and build something cool.
The main requirement of Controller.js is the Gamepad API itself. However it's only been tested and guaranteed to work in the following:
- Chrome 52+
- Firefox 48+
- Edge 14+
For up-to-date information on the status of the Gamepad API in browsers, check Can I use.
The MIT License (MIT)