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

Function CustomInputText

source/binding/NodeJS/src/apis/callback.cpp:332–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330}
331
332MaaBool CustomInputText(const char* text, void* trans_arg)
333{
334 auto customCtx = reinterpret_cast<CustomControllerContext*>(trans_arg);
335 auto ctx = customCtx->callbacks["input_text"];
336 return ctx->Call<bool>([&](maajs::FunctionType func) {
337 return func.Call(
338 {
339 maajs::StringType::New(func.Env(), text),
340 });
341 });
342}
343
344MaaBool CustomKeyDown(int32_t keycode, void* trans_arg)
345{

Callers

nothing calls this directly

Calls 2

CallMethod · 0.45
EnvMethod · 0.45

Tested by

no test coverage detected