10 years ago by ansimuz
I am putting my game to OUYA but i got a low performance with the webview by putting the game in a webview template as explained in this guide: https://github.com/ouya/docs/blob/master/html5.md#api
Now i'm trying cocoonjs to see if get a better performance by compiling the game into an apk with the accelerated canvas+ by Cocoonjs .
However i dont fully understand how to bind the controller. Ludei staff pointed me to use the gamepad api and it should work but i am a little confused (as always in gamepad matters) on how to point the OUYA controller with the gamepad api.
At Ludei they have this script: https://github.com/ludei/cocoonjs-demos/blob/master/Gamepad/CocoonJS_Gamepad.js
and they say it can be compatible with the plug in made by Dominic: https://gist.github.com/phoboslab/813c29dc61d2a6166311
Any idea how to make a plug-in to bind the controller using those scripts.
Now i'm trying cocoonjs to see if get a better performance by compiling the game into an apk with the accelerated canvas+ by Cocoonjs .
However i dont fully understand how to bind the controller. Ludei staff pointed me to use the gamepad api and it should work but i am a little confused (as always in gamepad matters) on how to point the OUYA controller with the gamepad api.
At Ludei they have this script: https://github.com/ludei/cocoonjs-demos/blob/master/Gamepad/CocoonJS_Gamepad.js
and they say it can be compatible with the plug in made by Dominic: https://gist.github.com/phoboslab/813c29dc61d2a6166311
Any idea how to make a plug-in to bind the controller using those scripts.