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

Method emit_syn

source/MaaKWinControlUnit/Input/UInputController.cpp:535–547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

533}
534
535bool UInputController::emit_syn()
536{
537 input_event ev = { };
538 ev.type = EV_SYN;
539 ev.code = SYN_REPORT;
540 ev.value = 0;
541
542 if (write(fd_, &ev, sizeof(ev)) != sizeof(ev)) {
543 LogError << "Failed to write SYN_REPORT" << VAR(errno) << VAR(std::strerror(errno));
544 return false;
545 }
546 return true;
547}
548
549bool UInputController::send_pointer_down(int x, int y, int btn_code)
550{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected