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

Method click

source/MaaReplayControlUnit/ReplayRecording/ReplayController.cpp:152–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152bool ReplayController::click(int x, int y)
153{
154 LogInfo << VAR(x) << VAR(y);
155
156 // TODO: 现在点击的点是随机区域,没法直接检查
157 auto* record = expect_record(RecordType::click);
158 if (!record) {
159 return false;
160 }
161
162 return consume_record(*record);
163}
164
165bool ReplayController::swipe(int x1, int y1, int x2, int y2, int duration)
166{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected