mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-01 21:58:49 +00:00
Implement clipboard paste
Paste computer clipboard to the device on Ctrl+v. The other direction (pasting the device clipboard to the computer) is not implemented. It would require a communication channel from the device to the computer, other than the socket used by the video stream.
This commit is contained in:
parent
e4d64e8752
commit
e2a7abcd53
8 changed files with 62 additions and 19 deletions
|
@ -65,7 +65,9 @@ static int run_controller(void *data) {
|
|||
}
|
||||
struct control_event event;
|
||||
while (control_event_queue_take(&controller->queue, &event)) {
|
||||
if (!process_event(controller, &event)) {
|
||||
SDL_bool ok = process_event(controller, &event);
|
||||
control_event_destroy(&event);
|
||||
if (!ok) {
|
||||
LOGD("Cannot write event to socket");
|
||||
goto end;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue