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

Method input_text

source/MaaAdbControlUnit/Input/AdbShellInput.cpp:101–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101bool AdbShellInput::input_text(const std::string& text)
102{
103 LogInfo << VAR(text);
104
105 merge_replacement({ { "{TEXT}", text } });
106
107 auto argv_opt = input_text_argv_.gen(argv_replace_);
108 if (!argv_opt) {
109 return false;
110 }
111
112 auto output_opt = startup_and_read_pipe(*argv_opt);
113 return output_opt && output_opt->empty();
114}
115
116bool AdbShellInput::key_down(int key)
117{

Callers

nothing calls this directly

Calls 2

genMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected