diff --git a/right/src/config_parser/parse_config.c b/right/src/config_parser/parse_config.c index b077846..20720d0 100644 --- a/right/src/config_parser/parse_config.c +++ b/right/src/config_parser/parse_config.c @@ -9,9 +9,14 @@ static parser_error_t parseModuleConfiguration(config_buffer_t *buffer) { uint8_t id = ReadUInt8(buffer); + uint8_t pointerMode = ReadUInt8(buffer); // move vs scroll uint8_t deceleratedPointerSpeedMultiplier = ReadUInt8(buffer); uint8_t basePointerSpeedMultiplier = ReadUInt8(buffer); uint8_t acceleratedPointerSpeed = ReadUInt8(buffer); + uint16_t angularShift = ReadUInt16(buffer); + uint8_t baseLayerPointerFunction = ReadUInt8(buffer); // none vs invertMode vs decelerate vs accelerate + uint8_t modLayerPointerFunction = ReadUInt8(buffer); // none vs invertMode vs decelerate vs accelerate + uint8_t mouseLayerPointerFunction = ReadUInt8(buffer); // none vs invertMode vs decelerate vs accelerate (void)id; (void)deceleratedPointerSpeedMultiplier; diff --git a/right/src/config_parser/parse_keymap.c b/right/src/config_parser/parse_keymap.c index 4517bf9..4f0a5a1 100644 --- a/right/src/config_parser/parse_keymap.c +++ b/right/src/config_parser/parse_keymap.c @@ -116,7 +116,7 @@ static parser_error_t parseKeyAction(key_action_t *keyAction, config_buffer_t *b return ParserError_InvalidSerializedKeyActionType; } -static parser_error_t parseKeyActions(uint8_t targetLayer, config_buffer_t *buffer, uint8_t moduleId, uint8_t pointerRole) +static parser_error_t parseKeyActions(uint8_t targetLayer, config_buffer_t *buffer, uint8_t moduleId) { parser_error_t errorCode; uint16_t actionCount = ReadCompactLength(buffer); @@ -137,9 +137,7 @@ static parser_error_t parseKeyActions(uint8_t targetLayer, config_buffer_t *buff static parser_error_t parseModule(config_buffer_t *buffer, uint8_t layer) { uint8_t moduleId = ReadUInt8(buffer); - uint8_t pointerRole = ReadUInt8(buffer); - - return parseKeyActions(layer, buffer, moduleId, pointerRole); + return parseKeyActions(layer, buffer, moduleId); } static parser_error_t parseLayer(config_buffer_t *buffer, uint8_t layer)