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

Method key_down

source/MaaKWinControlUnit/Manager/KWinControlUnitMgr.cpp:184–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184bool KWinControlUnitMgr::key_down(int key)
185{
186 if (!input_) {
187 LogError << "input_ is nullptr";
188 return false;
189 }
190
191 const int evdev_key = translate_key(key);
192 if (evdev_key == 0) {
193 LogError << "Failed to translate key" << VAR(key) << VAR(use_win32_vk_code_);
194 return false;
195 }
196
197 return input_->key_down(evdev_key);
198}
199
200bool KWinControlUnitMgr::key_up(int key)
201{

Callers

nothing calls this directly

Calls 1

key_downMethod · 0.65

Tested by

no test coverage detected