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

Method key_up

source/MaaKWinControlUnit/Manager/KWinControlUnitMgr.cpp:200–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200bool KWinControlUnitMgr::key_up(int key)
201{
202 if (!input_) {
203 LogError << "input_ is nullptr";
204 return false;
205 }
206
207 const int evdev_key = translate_key(key);
208 if (evdev_key == 0) {
209 LogError << "Failed to translate key" << VAR(key) << VAR(use_win32_vk_code_);
210 return false;
211 }
212
213 return input_->key_up(evdev_key);
214}
215
216bool KWinControlUnitMgr::relative_move(int dx, int dy)
217{

Callers

nothing calls this directly

Calls 1

key_upMethod · 0.65

Tested by

no test coverage detected