| 345 | } |
| 346 | |
| 347 | bool 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 | |
| 367 | std::pair<int, int> UInputController::screen_size() const |
| 368 | { |
nothing calls this directly
no outgoing calls
no test coverage detected