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

Method post_scroll

source/MaaAgentServer/RemoteInstance/RemoteController.cpp:273–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273MaaCtrlId RemoteController::post_scroll(int dx, int dy)
274{
275 ControllerPostScrollReverseRequest req {
276 .controller_id = controller_id_,
277 .dx = dx,
278 .dy = dy,
279 };
280 auto resp_opt = server_.send_and_recv<ControllerPostScrollReverseResponse>(req);
281 if (!resp_opt) {
282 return MaaInvalidId;
283 }
284 return resp_opt->ctrl_id;
285}
286
287MaaCtrlId RemoteController::post_shell(const std::string& cmd, int64_t timeout)
288{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected