mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-01 12:24:14 +01:00
e1a0350062
with this PR you can add \#include Keyboard.h \#include Mouse.h \#include HID.h in the top of the sketch and you will expose a Mouse+Keyboard From the library pow, simply add static HID_Descriptor cb = { .length = sizeof(_hidReportDescriptor), .descriptor = _hidReportDescriptor, }; static HIDDescriptorListNode node(&cb); HID.AppendDescriptor(&node); in the class' constructor and you are done! |
||
---|---|---|
.. | ||
Keyboard.cpp | ||
Keyboard.h |