mirror of
https://github.com/Genymobile/scrcpy
synced 2025-03-03 03:37:32 +00:00
Add clipboard logs
Synchronizing local and device clipboards in invisible. Add INFO logs on success.
This commit is contained in:
parent
9712cb8123
commit
6537c2ef01
@ -26,6 +26,7 @@ static void
|
|||||||
process_msg(struct receiver *receiver, struct device_msg *msg) {
|
process_msg(struct receiver *receiver, struct device_msg *msg) {
|
||||||
switch (msg->type) {
|
switch (msg->type) {
|
||||||
case DEVICE_MSG_TYPE_CLIPBOARD:
|
case DEVICE_MSG_TYPE_CLIPBOARD:
|
||||||
|
LOGI("Device clipboard copied");
|
||||||
SDL_SetClipboardText(msg->clipboard.text);
|
SDL_SetClipboardText(msg->clipboard.text);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -149,6 +149,7 @@ public final class Device {
|
|||||||
|
|
||||||
public void setClipboardText(String text) {
|
public void setClipboardText(String text) {
|
||||||
serviceManager.getClipboardManager().setText(text);
|
serviceManager.getClipboardManager().setText(text);
|
||||||
|
Ln.i("Device clipboard set");
|
||||||
}
|
}
|
||||||
|
|
||||||
static Rect flipRect(Rect crop) {
|
static Rect flipRect(Rect crop) {
|
||||||
|
Loading…
Reference in New Issue
Block a user