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

Function CustomScroll

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

Source from the content-addressed store, hash-verified

366}
367
368MaaBool CustomScroll(int32_t dx, int32_t dy, void* trans_arg)
369{
370 auto customCtx = reinterpret_cast<CustomControllerContext*>(trans_arg);
371 auto ctx = customCtx->callbacks["scroll"];
372 return ctx->Call<bool>([&](maajs::FunctionType func) {
373 return func.Call(
374 {
375 maajs::NumberType::New(func.Env(), dx),
376 maajs::NumberType::New(func.Env(), dy),
377 });
378 });
379}
380
381MaaBool CustomRelativeMove(int32_t dx, int32_t dy, void* trans_arg)
382{

Callers

nothing calls this directly

Calls 2

CallMethod · 0.45
EnvMethod · 0.45

Tested by

no test coverage detected