Add another HID interface using the consumer HID class for media keys. Resolves #32.

This commit is contained in:
László Monda
2017-03-03 20:21:05 +01:00
parent 1aae668ed5
commit c887b5e309
24 changed files with 604 additions and 344 deletions

View File

@@ -106,7 +106,7 @@ static void processNoneAction(key_action_t *action, serialized_buffer_t *buffer)
static void processKeyStrokeAction(key_action_t *action, uint8_t actionType, serialized_buffer_t *buffer) {
uint8_t flags = actionType - 1;
action->type = KEY_ACTION_KEYSTROKE;
action->type = KEY_ACTION_BASIC_KEYSTROKE;
if (flags & HAS_SCANCODE) {
action->keystroke.key = readUInt8(buffer);