From d5e8c9dddc59bc492f8a254febfb5fb49bf036d0 Mon Sep 17 00:00:00 2001 From: tobozo Date: Mon, 21 Feb 2022 14:16:24 +0100 Subject: [PATCH] Make USBHIDKeyboard::sendReport() public (#6322) Exposing this method makes it easier to integrate non-espressif USB-based projects (e.g. led/modifiers examples from USB Host Shield 2.0) --- libraries/USB/src/USBHIDKeyboard.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/USB/src/USBHIDKeyboard.h b/libraries/USB/src/USBHIDKeyboard.h index 5f9fdfc4..41b6db9d 100644 --- a/libraries/USB/src/USBHIDKeyboard.h +++ b/libraries/USB/src/USBHIDKeyboard.h @@ -114,7 +114,6 @@ class USBHIDKeyboard: public USBHIDDevice, public Print private: USBHID hid; KeyReport _keyReport; - void sendReport(KeyReport* keys); public: USBHIDKeyboard(void); void begin(void); @@ -124,6 +123,7 @@ public: size_t press(uint8_t k); size_t release(uint8_t k); void releaseAll(void); + void sendReport(KeyReport* keys); //raw functions work with TinyUSB's HID_KEY_* macros size_t pressRaw(uint8_t k);