Skip to content

Send RawKeyreports and MediaKeyReport are missing #39

@EmileSpecialProducts

Description

@EmileSpecialProducts

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions