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

Function CustomRelativeMove

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

Source from the content-addressed store, hash-verified

379}
380
381MaaBool CustomRelativeMove(int32_t dx, int32_t dy, void* trans_arg)
382{
383 auto customCtx = reinterpret_cast<CustomControllerContext*>(trans_arg);
384 auto ctx = customCtx->callbacks["relative_move"];
385 return ctx->Call<bool>([&](maajs::FunctionType func) {
386 return func.Call(
387 {
388 maajs::NumberType::New(func.Env(), dx),
389 maajs::NumberType::New(func.Env(), dy),
390 });
391 });
392}
393
394MaaBool CustomShell(const char* cmd, int64_t timeout, void* trans_arg, MaaStringBuffer* buffer)
395{

Callers

nothing calls this directly

Calls 2

CallMethod · 0.45
EnvMethod · 0.45

Tested by

no test coverage detected