Added an example code to control Keyboard and Mouse from Arduino
I really hope this example would be much more visible if it's directly in the library and hence can really help beginners.
As I brought up in https://github.com/arduino-libraries/Mouse/pull/13#issuecomment-598643770:
One thing to note is that this example already comes bundled with the Arduino IDE (and Arduino Web Editor) under File > Examples > 09.USB > KeyboardAndMouseControl.
It does make sense to bundle the examples with the library since the IDE bundled examples are not available to arduino-cli and Arduino Pro IDE users. I don't like the idea of having duplicate code to maintain, but it also could be problematic to remove the built-in sketches since there are likely tutorials that point people to that menu path. I suppose we could replace the content of the built in sketches with a comment like:
// This example has been moved to File > Examples > Mouse > KeyboardLogout
(should be adapted to make sense for Arduino Web Editor users also)
@per1234 thanks your valuable feedback and time once again, will do the needful changes and let you know.
I recommend also adding the layout and schematic files from https://github.com/arduino/Arduino/tree/master/build/shared/examples/09.USB/KeyboardAndMouseControl Sure sir, if you think that will help
This still isn't done:
Please spell the sketch name the same as in the existing example sketch: KeyboardAndMouseControl
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.