mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-04-21 12:05:00 +00:00
The shortcut "back on screen on" is a bit special: the control is requested by the client, but the actual event injection (POWER or BACK) is determined on the device. To properly inject DOWN and UP events for BACK, transmit the action as a control parameter. If the screen is off: - on DOWN, inject POWER (DOWN and UP) (wake up the device immediately) - on UP, do nothing If the screen is on: - on DOWN, inject BACK DOWN - on UP, inject BACK UP A corner case is when the screen turns off between the DOWN and UP event. In that case, a BACK UP event will be injected, so it's harmless. With this change, the actual BACK is handled by Android on UP on the device (instead of DOWN). This is consistent with the keyboard shortcut (Mod+b) behavior. |
||
---|---|---|
.. | ||
test_buffer_util.c | ||
test_cbuf.c | ||
test_cli.c | ||
test_control_msg_serialize.c | ||
test_device_msg_deserialize.c | ||
test_queue.c | ||
test_strutil.c |