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

Method click_key

source/MaaAdbControlUnit/Input/MaatouchInput.cpp:50–56  ·  view source on GitHub ↗

get_features() 返回 MaaControllerFeature_UseKeyboardDownAndUpInsteadOfClick, 上层 ControllerAgent 会使用 key_down/key_up 替代 click_key

Source from the content-addressed store, hash-verified

48// get_features() 返回 MaaControllerFeature_UseKeyboardDownAndUpInsteadOfClick,
49// 上层 ControllerAgent 会使用 key_down/key_up 替代 click_key
50bool MaatouchInput::click_key(int key)
51{
52 LogError << "deprecated: get_features() returns MaaControllerFeature_UseKeyboardDownAndUpInsteadOfClick, "
53 "use key_down/key_up instead"
54 << VAR(key);
55 return false;
56}
57
58bool MaatouchInput::input_text(const std::string& text)
59{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected