Use KEY_ACTION_KEYSTROKE instead of KEY_ACTION_{BASIC,MEDIA}_KEYSTROKE. Add keystroke_type_t.
This commit is contained in:
@@ -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_BASIC_KEYSTROKE;
|
||||
action->type = KEY_ACTION_KEYSTROKE;
|
||||
|
||||
if (flags & HAS_SCANCODE) {
|
||||
action->keystroke.scancode = readUInt8(buffer);
|
||||
|
||||
Reference in New Issue
Block a user