ELEGOO UNO R3 Mikrocontroller Board Mouse.click() and keyPressed()

Hi, :slight_smile:

i bought yesterday "ELEGOO UNO R3 Mikrocontroller Board ATmega328P ATMEGA16U2" and i want to know if this works with Mouse.click(),keyPressed() functions.

im trying to send a simple mouse click to my PC.

Error:

Arduino: 1.8.12 (Windows 10), Board: "Arduino Uno"

In file included from C:\Users\User0\Desktop\BASIC ON OFF ARDUINO\basic.ino\basic.ino.ino:1:0:

C:\Program Files (x86)\Arduino\libraries\Mouse\src/Mouse.h:29:2: warning: #warning "Using legacy HID core (non pluggable)" [-Wcpp]

 #warning "Using legacy HID core (non pluggable)"

  ^~~~~~~

C:\Users\User0\Desktop\BASIC ON OFF ARDUINO\basic.ino\basic.ino.ino: In function 'void setup()':

basic.ino:17:3: error: 'Mouse' nicht gefunden. Beinhaltet Ihr Sketch die Zeile '#include <Mouse.h>'?
   Mouse.begin()

   ^~~~~

exit status 1
'Mouse' nicht gefunden. Beinhaltet Ihr Sketch die Zeile '#include <Mouse.h>'?

Dieser Bericht wäre detaillierter, wenn die Option
"Ausführliche Ausgabe während der Kompilierung"
in Datei -> Voreinstellungen aktiviert wäre.

The mouse and keyboard libraries only work with boards that support native USB and therefore can act as a HID; e.g. a Leonardo (same form factor as the Uno).