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

Function CustomClick

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

Source from the content-addressed store, hash-verified

247}
248
249MaaBool CustomClick(int32_t x, int32_t y, void* trans_arg)
250{
251 auto customCtx = reinterpret_cast<CustomControllerContext*>(trans_arg);
252 auto ctx = customCtx->callbacks["click"];
253 return ctx->Call<bool>([&](maajs::FunctionType func) {
254 return func.Call(
255 {
256 maajs::NumberType::New(func.Env(), x),
257 maajs::NumberType::New(func.Env(), y),
258 });
259 });
260}
261
262MaaBool CustomSwipe(int32_t x1, int32_t y1, int32_t x2, int32_t y2, int32_t duration, void* trans_arg)
263{

Callers

nothing calls this directly

Calls 2

CallMethod · 0.45
EnvMethod · 0.45

Tested by

no test coverage detected