Rename long presss action to secondary role.

This commit is contained in:
László Monda
2017-11-06 01:58:11 +01:00
parent 34b2875861
commit 3533a8f73c
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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;