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

Method click

source/MaaWin32ControlUnit/Input/MessageInput.cpp:855–861  ·  view source on GitHub ↗

get_features() 返回 MaaControllerFeature_UseMouseDownAndUpInsteadOfClick, 上层 ControllerAgent 会使用 touch_down/touch_up 替代 click/swipe

Source from the content-addressed store, hash-verified

853// get_features() 返回 MaaControllerFeature_UseMouseDownAndUpInsteadOfClick,
854// 上层 ControllerAgent 会使用 touch_down/touch_up 替代 click/swipe
855bool MessageInput::click(int x, int y)
856{
857 LogError << "deprecated: get_features() returns MaaControllerFeature_UseMouseDownAndUpInsteadOfClick, "
858 "use touch_down/touch_up instead"
859 << VAR(config_.mode) << VAR(config_.with_cursor_pos) << VAR(config_.with_window_pos) << VAR(x) << VAR(y);
860 return false;
861}
862
863bool MessageInput::swipe(int x1, int y1, int x2, int y2, int duration)
864{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected