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

Function CustomKeyUp

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

Source from the content-addressed store, hash-verified

354}
355
356MaaBool CustomKeyUp(int32_t keycode, void* trans_arg)
357{
358 auto customCtx = reinterpret_cast<CustomControllerContext*>(trans_arg);
359 auto ctx = customCtx->callbacks["key_up"];
360 return ctx->Call<bool>([&](maajs::FunctionType func) {
361 return func.Call(
362 {
363 maajs::NumberType::New(func.Env(), keycode),
364 });
365 });
366}
367
368MaaBool CustomScroll(int32_t dx, int32_t dy, void* trans_arg)
369{

Callers

nothing calls this directly

Calls 2

CallMethod · 0.45
EnvMethod · 0.45

Tested by

no test coverage detected