Rename long presss action to secondary role.
This commit is contained in:
@@ -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
|
keyAction->keystroke.modifiers = keyStrokeAction & SERIALIZED_KEYSTROKE_TYPE_MASK_HAS_MODIFIERS
|
||||||
? readUInt8(buffer)
|
? readUInt8(buffer)
|
||||||
: 0;
|
: 0;
|
||||||
keyAction->keystroke.longPressAction = keyStrokeAction & SERIALIZED_KEYSTROKE_TYPE_MASK_HAS_LONGPRESS
|
keyAction->keystroke.secondaryRole = keyStrokeAction & SERIALIZED_KEYSTROKE_TYPE_MASK_HAS_LONGPRESS
|
||||||
? readUInt8(buffer)
|
? readUInt8(buffer)
|
||||||
: 0;
|
: 0;
|
||||||
return ParserError_Success;
|
return ParserError_Success;
|
||||||
|
|||||||
@@ -67,7 +67,7 @@
|
|||||||
union {
|
union {
|
||||||
struct {
|
struct {
|
||||||
keystroke_type_t keystrokeType;
|
keystroke_type_t keystrokeType;
|
||||||
uint8_t longPressAction;
|
uint8_t secondaryRole;
|
||||||
uint8_t modifiers;
|
uint8_t modifiers;
|
||||||
uint16_t scancode;
|
uint16_t scancode;
|
||||||
} ATTR_PACKED keystroke;
|
} ATTR_PACKED keystroke;
|
||||||
|
|||||||
Reference in New Issue
Block a user