Using Gamepad API in extensions


#1

Hi!

I tried creating an extension which would allow getting input from a Thrustmaster joystick: https://github.com/aivarannamaa/mBlockHotas

I was able to get it working in http://scratchx.org/ (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() ?


#2

Hi

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