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

Method key_up

source/MaaKWinControlUnit/Input/UInputController.cpp:347–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345}
346
347bool UInputController::key_up(int key_code)
348{
349 LogDebug << VAR(key_code);
350
351 std::unique_lock<std::mutex> lock(mutex_);
352
353 if (!connected_) {
354 LogError << "Not connected";
355 return false;
356 }
357
358 if (!emit_key(key_code, 0)) {
359 return false;
360 }
361 if (!emit_syn()) {
362 return false;
363 }
364 return true;
365}
366
367std::pair<int, int> UInputController::screen_size() const
368{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected