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

Function CustomTouchUp

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

Source from the content-addressed store, hash-verified

306}
307
308MaaBool CustomTouchUp(int32_t contact, void* trans_arg)
309{
310 auto customCtx = reinterpret_cast<CustomControllerContext*>(trans_arg);
311 auto ctx = customCtx->callbacks["touch_up"];
312 return ctx->Call<bool>([&](maajs::FunctionType func) {
313 return func.Call(
314 {
315 maajs::NumberType::New(func.Env(), contact),
316 });
317 });
318}
319
320MaaBool CustomClickKey(int32_t keycode, void* trans_arg)
321{

Callers

nothing calls this directly

Calls 2

CallMethod · 0.45
EnvMethod · 0.45

Tested by

no test coverage detected