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

Method post_swipe

source/binding/NodeJS/src/apis/controller.cpp:160–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160maajs::ValueType ControllerImpl::post_swipe(
161 maajs::ValueType self,
162 maajs::EnvType,
163 int32_t x1,
164 int32_t y1,
165 int32_t x2,
166 int32_t y2,
167 int32_t duration,
168 maajs::OptionalParam<int32_t> contact,
169 maajs::OptionalParam<int32_t> pressure)
170{
171 auto id = MaaControllerPostSwipeV2(controller, x1, y1, x2, y2, duration, contact.value_or(0), pressure.value_or(1));
172 return maajs::CallCtorHelper(ExtContext::get(env)->jobCtor, self, id);
173}
174
175maajs::ValueType ControllerImpl::post_click_key(maajs::ValueType self, maajs::EnvType, int32_t keycode)
176{

Callers 7

MaaControllerPostSwipeV2Function · 0.45
runMethod · 0.45
test_controller_apiFunction · 0.45
test_custom_controllerFunction · 0.45
myActFunction · 0.45
custom_ctrl_testFunction · 0.45
runMethod · 0.45

Calls 2

MaaControllerPostSwipeV2Function · 0.85
CallCtorHelperFunction · 0.85

Tested by 4

runMethod · 0.36
test_controller_apiFunction · 0.36
test_custom_controllerFunction · 0.36
runMethod · 0.36