diff --git a/right/src/config_parser/parse_keymap.c b/right/src/config_parser/parse_keymap.c index 5ffd0d0..6a58abc 100644 --- a/right/src/config_parser/parse_keymap.c +++ b/right/src/config_parser/parse_keymap.c @@ -39,7 +39,7 @@ static parser_error_t parseKeyStrokeAction(key_action_t *keyAction, uint8_t keyS keyAction->keystroke.modifiers = keyStrokeAction & SERIALIZED_KEYSTROKE_TYPE_MASK_HAS_MODIFIERS ? readUInt8(buffer) : 0; - keyAction->keystroke.longPressAction = keyStrokeAction & SERIALIZED_KEYSTROKE_TYPE_MASK_HAS_LONGPRESS + keyAction->keystroke.secondaryRole = keyStrokeAction & SERIALIZED_KEYSTROKE_TYPE_MASK_HAS_LONGPRESS ? readUInt8(buffer) : 0; return ParserError_Success; diff --git a/right/src/key_action.h b/right/src/key_action.h index e8db508..a68c5ad 100644 --- a/right/src/key_action.h +++ b/right/src/key_action.h @@ -67,7 +67,7 @@ union { struct { keystroke_type_t keystrokeType; - uint8_t longPressAction; + uint8_t secondaryRole; uint8_t modifiers; uint16_t scancode; } ATTR_PACKED keystroke;