Ludei is happy to announce that from the release of the current version of CocoonJS (1.4.4) we have included support for the highly anticipated and repeatedly requested gamepad API support. The W3C has a work draft for a gamepad API specification. Modern desktop browsers are starting to support it (as usual, in their customized fashion way, check out Chrome and Firefox) but there is no trace of supporting it on mobile browsers so far (have checked on Chrome mobile and the NVIDIA Shield modified system browser, if I am wrong, please, let us know). Ludei’s gamepad API support is available for Android at the moment, but as Apple has released their gamepad API for iOS along with iOS 7, we are planning to support it soon (stay tuned!). But what does supporting the gamepad API mean?
* Android 4.0+ enabled devices have game controller support, so you will be able to connect a gamepad to your device and control your game with it.
* The OUYA console is an Android based system that got lot of attention thanks to their Kickstarter project. As a console for home/TV entertainment, it provides game controllers and as it is based on Android, Ludei is offering OUYA export/support thanks to the gamepad API.
* The NVIDIA Shield is a handheld console from NVIDIA that is also based on Android and thus, also supports game controllers thanks to the gamepad API.
Long story short, any Android device that can manage game controllers, will benefit from the CocoonJS acceleration, ease of export and now, the HTML5 gamepad API.
We are providing a new demo in our catalog (just available on the Android CocoonJS Launcher App) to show the basics on how to use the gamepad API. As with all the other demos, we provide the full source code of the demo. We also have added an optional CocoonJS extension file to provide with an easier way of accessing the buttons and axes in the gamepad API.
Also, please, check the gamepad extension checkbox on the CocoonJS cloud compiler. You can activate it for any Android compilation you make (for GooglePlay). We have also added a specific compilation for OUYA that automatically includes the gamepad API.
We are eager to see what you guys are able to do with this new feature/API. We think that HTML5 supporting gamepads is another step forward to show that web technology is ready for gaming. Ludei is doing its best to help make it a reality, specially on mobile.
And, hopefully soon… also available on iOS!!!
Some additional resources:
- More information about the gamepad API in Ludei/CocoonJS in our wiki: http://wiki.ludei.com
- HTML5 PongJS by Ludei: https://bitbucket.org/ludei/game_pongjs
- Canvas and WebGL rendering, 5 different input management (keys, mouse, touch, gamepad and the Leap Motion controller).
- Some additional and interesting resources on how to handle gamepads in HTML5
- Some tutorials on how to connect a controller to an Android device: