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

Method key_up

source/MaaWin32ControlUnit/Input/MessageInput.cpp:1115–1128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1113}
1114
1115bool MessageInput::key_up(int key)
1116{
1117 LogInfo << VAR(config_.mode) << VAR(key);
1118
1119 if (!hwnd_) {
1120 LogError << VAR(config_.mode) << VAR(config_.with_cursor_pos) << VAR(config_.with_window_pos) << "hwnd_ is nullptr";
1121 return false;
1122 }
1123
1124 HWND target = send_activate();
1125
1126 LPARAM lParam = make_keyup_lparam(key);
1127 return send_or_post_w(target, WM_KEYUP, static_cast<WPARAM>(key), lParam);
1128}
1129
1130bool MessageInput::scroll(int dx, int dy)
1131{

Callers

nothing calls this directly

Calls 1

make_keyup_lparamFunction · 0.85

Tested by

no test coverage detected