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

Method click

source/MaaWin32ControlUnit/Input/LegacyEventInput.cpp:29–35  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

27// get_features() 返回 MaaControllerFeature_UseMouseDownAndUpInsteadOfClick,
28// 上层 ControllerAgent 会使用 touch_down/touch_up 替代 click/swipe
29bool LegacyEventInput::click(int x, int y)
30{
31 LogError << "deprecated: get_features() returns MaaControllerFeature_UseMouseDownAndUpInsteadOfClick, "
32 "use touch_down/touch_up instead"
33 << VAR(x) << VAR(y);
34 return false;
35}
36
37bool LegacyEventInput::swipe(int x1, int y1, int x2, int y2, int duration)
38{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected