Using Gamepad API in extensions



I tried creating an extension which would allow getting input from a Thrustmaster joystick:

I was able to get it working in (with Chrome) but not in mBlock (it shows red dot with text “Disconnected”).

What can be the reason? How to debug the extensions on mBlock? How can I see the result of console.log() ?



According to this post, you can use the “trace ()” function to see the console log.