scrcpy/app
Romain Vimont e4163321f0 Delay HID events on Ctrl+v
When Ctrl+v is pressed, a control is sent to the device to set the
device clipboard before injecting Ctrl+v.

With the InputManager method, it is guaranteed that the device
synchronization is executed before handling Ctrl+v, since the commands
are executed on the device in sequence.

However, HID are injected from the computer, so there is no such
guarantee. As a consequence, on Android, Ctrl+v triggers a paste with
the old clipboard content.

To workaround the issue, wait a bit (2 milliseconds) from the AOA
thread before injecting the event, to leave enough time for the
clipboard to be set before injecting Ctrl+v.
2021-10-26 21:30:04 +02:00
..
src Delay HID events on Ctrl+v 2021-10-26 21:30:04 +02:00
tests Add clock tests 2021-07-14 14:54:22 +02:00
meson.build Add support for USB HID keyboard over AOAv2 2021-10-26 21:30:04 +02:00
scrcpy.1 Add support for USB HID keyboard over AOAv2 2021-10-26 21:30:04 +02:00