Hi all! In a different thread (A camera extension?) there was some interest in a simulator extension to support keyboard and mouse input. I’d like to take a stab at this, or at least get it started for others to take further.
Simulator extensions are a specialty item right now, and not supported by the MakeCode editor itself. When you add a simulator extension to your project, you will see the new blocks it defines and you can code with them, but they won’t do anything. This means you won’t be able to test your code in the editor’s Arcade simulator. For the blocks to function, Arcade needs to be running in a host website that allows the external script to load. The easiest way to do this is to publish your project on GitHub Pages. It is also possible to test on your local machine and I’ll post how to do that later.
Another limitation: it won’t work on hardware, obviously.
Is everyone still with me?
Given all that, for those interested, what blocks would you like to see?