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

Method handle_touch_down

source/MaaFramework/Controller/ControllerAgent.cpp:674–685  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

672}
673
674bool ControllerAgent::handle_touch_down(const TouchParam& param)
675{
676 if (!control_unit_) {
677 LogError << "control_unit_ is nullptr";
678 return false;
679 }
680
681 cv::Point point = preproc_touch_point(param.point);
682 bool ret = control_unit_->touch_down(param.contact, point.x, point.y, param.pressure);
683
684 return ret;
685}
686
687bool ControllerAgent::handle_touch_move(const TouchParam& param)
688{

Callers

nothing calls this directly

Calls 1

touch_downMethod · 0.65

Tested by

no test coverage detected