So I bought an Arduino Leonardo in hopes of simulating a mouse. However, even after including all the necessary libraries, I couldn't seem to get any input at all.
It is just as well that the sketch is not working else you would find it difficult to edit and upload a sketch with the mouse continually clicking its button
Be very careful when testing the mouse functions as it is easy to get stuck with the sketch continually moving or clicking the mouse
It would be sensible to have the mouse functions controlled by a switch, button or Serial input with the default being for them to be disabled
oh, I meant that it only worked after I restarted my computer, which was really weird
I did some further testing and found out that this is somehow reproducible on my side. I was testing the mouse movement function, and somehow it didn't want to work after I uploaded it
However, after I restarted my computer it started magically working again?? I'm quite confused