| 533 | } |
| 534 | |
| 535 | bool 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 | |
| 549 | bool UInputController::send_pointer_down(int x, int y, int btn_code) |
| 550 | { |
nothing calls this directly
no outgoing calls
no test coverage detected