From 5a002d9693c7c27f3fcfa5c428b91ad216091b3f Mon Sep 17 00:00:00 2001 From: tobozo Date: Mon, 21 Feb 2022 13:25:13 +0100 Subject: [PATCH] Make USBHIDKeyboard::sendReport() public 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 5f9fdfc4696..41b6db9d8fc 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 @@ class USBHIDKeyboard: public USBHIDDevice, public Print 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);