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

Method key_down

source/MaaWin32ControlUnit/Manager/Win32ControlUnitMgr.cpp:381–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379}
380
381bool Win32ControlUnitMgr::key_down(int key)
382{
383 if (managed_keys_.contains(key)) {
384 if (!background_keyboard_) {
385 LogError << "background_keyboard_ is null";
386 return false;
387 }
388 return background_keyboard_->key_down(key);
389 }
390
391 if (!keyboard_) {
392 LogError << "keyboard_ is null";
393 return false;
394 }
395
396 return keyboard_->key_down(key);
397}
398
399bool Win32ControlUnitMgr::key_up(int key)
400{

Callers

nothing calls this directly

Calls 1

key_downMethod · 0.65

Tested by

no test coverage detected