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

Method click_key

source/MaaWin32ControlUnit/Input/MessageInput.cpp:1072–1078  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1070// get_features() 返回 MaaControllerFeature_UseKeyboardDownAndUpInsteadOfClick,
1071// 上层 ControllerAgent 会使用 key_down/key_up 替代 click_key
1072bool MessageInput::click_key(int key)
1073{
1074 LogError << "deprecated: get_features() returns MaaControllerFeature_UseKeyboardDownAndUpInsteadOfClick, "
1075 "use key_down/key_up instead"
1076 << VAR(config_.mode) << VAR(config_.with_cursor_pos) << VAR(config_.with_window_pos) << VAR(key);
1077 return false;
1078}
1079
1080bool MessageInput::input_text(const std::string& text)
1081{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected