Handle secondary role modifiers.

This commit is contained in:
László Monda
2017-11-06 18:11:05 +01:00
parent 3533a8f73c
commit 693315222f
3 changed files with 119 additions and 54 deletions

View File

@@ -40,7 +40,7 @@ static parser_error_t parseKeyStrokeAction(key_action_t *keyAction, uint8_t keyS
? readUInt8(buffer)
: 0;
keyAction->keystroke.secondaryRole = keyStrokeAction & SERIALIZED_KEYSTROKE_TYPE_MASK_HAS_LONGPRESS
? readUInt8(buffer)
? readUInt8(buffer) + 1
: 0;
return ParserError_Success;
}