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

Function add_controller_sink

source/binding/NodeJS/src/apis/plugin.cpp:16–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16static void add_controller_sink(maajs::FunctionType func)
17{
18 auto ctx = std::make_unique<maajs::CallbackContext>(func, "ControllerSink");
19 QuickJSRuntimeBridgeInterface::get(func.Env())->plugin_add_sink(QuickJSRuntimeBridgeInterface::Controller, ControllerSink, ctx.get());
20 ExtContext::get(func.Env())->globalCallbacks.push_back(std::move(ctx));
21}
22
23static void add_tasker_sink(maajs::FunctionType func)
24{

Callers

nothing calls this directly

Calls 4

moveFunction · 0.85
plugin_add_sinkMethod · 0.80
EnvMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected