MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / parse_key_param

Method parse_key_param

source/MaaFramework/Resource/PipelineParser.cpp:1334–1344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1332}
1333
1334bool PipelineParser::parse_key_param(const json::value& input, Action::KeyParam& output, const Action::KeyParam& default_value)
1335{
1336 int key = default_value.key;
1337 if (!get_multi_keys_and_check_value(input, { "key", "key_code" }, key, default_value.key)) {
1338 LogError << "failed to get_multi_keys_and_check_value key" << VAR(input);
1339 return false;
1340 }
1341
1342 output.key = key;
1343 return true;
1344}
1345
1346bool PipelineParser::parse_touch(const json::value& input, Action::TouchParam& output, const Action::TouchParam& default_value)
1347{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected