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)
This commit is contained in:
tobozo
2022-02-21 14:16:24 +01:00
committed by GitHub
parent 65cfab7868
commit d5e8c9dddc

View File

@ -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);