forked from lemmingDev/ESP32-BLE-Gamepad
-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
As i will need more keyboard layouts i need to send RawKeyreports
Can you add a command to do Something like SetKeyReport( KeyReport )
And and something like SetMediaKeyReport (MediaKeyReport)
in KeyboardDevice.cpp Add this at
void KeyboardDevice::setKeyReport(KeyboardInputReport *InputReport)
{
memcpy(&_inputReport, InputReport, sizeof(_inputReport));
if (_config.getAutoReport())
{
sendKeyReport();
}
}
void KeyboardDevice::setMediaKeyReport(KeyboardMediaInputReport *MediaInputReport)
{
memcpy( &_mediaKeyInputReport,MediaInputReport, sizeof(_mediaKeyInputReport));
if (_config.getAutoReport())
{
sendMediaKeyReport();
}
}
And in KeyboardDevice.h
void setKeyReport(KeyboardInputReport *InputReport);
void setMediaKeyReport(KeyboardMediaInputReport *MediaInputReport);
Metadata
Metadata
Assignees
Labels
No labels