| 1332 | } |
| 1333 | |
| 1334 | bool 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 | |
| 1346 | bool PipelineParser::parse_touch(const json::value& input, Action::TouchParam& output, const Action::TouchParam& default_value) |
| 1347 | { |
nothing calls this directly
no test coverage detected