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

Function CustomClickKey

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

Source from the content-addressed store, hash-verified

318}
319
320MaaBool CustomClickKey(int32_t keycode, void* trans_arg)
321{
322 auto customCtx = reinterpret_cast<CustomControllerContext*>(trans_arg);
323 auto ctx = customCtx->callbacks["click_key"];
324 return ctx->Call<bool>([&](maajs::FunctionType func) {
325 return func.Call(
326 {
327 maajs::NumberType::New(func.Env(), keycode),
328 });
329 });
330}
331
332MaaBool CustomInputText(const char* text, void* trans_arg)
333{

Callers

nothing calls this directly

Calls 2

CallMethod · 0.45
EnvMethod · 0.45

Tested by

no test coverage detected