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

Method handle_touch_move

source/MaaFramework/Controller/ControllerAgent.cpp:687–698  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

685}
686
687bool ControllerAgent::handle_touch_move(const TouchParam& param)
688{
689 if (!control_unit_) {
690 LogError << "control_unit_ is nullptr";
691 return false;
692 }
693
694 cv::Point point = preproc_touch_point(param.point);
695 bool ret = control_unit_->touch_move(param.contact, point.x, point.y, param.pressure);
696
697 return ret;
698}
699
700bool ControllerAgent::handle_touch_up(const TouchParam& param)
701{

Callers

nothing calls this directly

Calls 1

touch_moveMethod · 0.65

Tested by

no test coverage detected