Mouse icon indicating copy to clipboard operation
Mouse copied to clipboard

Added an example code to control Keyboard and Mouse from Arduino

Open Arsh0508 opened this issue 5 years ago • 5 comments

I really hope this example would be much more visible if it's directly in the library and hence can really help beginners.

Arsh0508 avatar Mar 15 '20 11:03 Arsh0508

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 avatar Mar 16 '20 04:03 per1234

@per1234 thanks your valuable feedback and time once again, will do the needful changes and let you know.

Arsh0508 avatar Mar 17 '20 06:03 Arsh0508

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

Arsh0508 avatar Mar 17 '20 08:03 Arsh0508

This still isn't done:

Please spell the sketch name the same as in the existing example sketch: KeyboardAndMouseControl

per1234 avatar Mar 23 '20 02:03 per1234

CLA assistant check
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.

CLAassistant avatar Apr 09 '21 13:04 CLAassistant