- 06 6月, 2019 3 次提交
-
-
由 Romain Vimont 提交于
Replace the compilation flag SKIP_FRAMES by a runtime flag to force rendering of expired frames. By default, the expired frames are skipped.
-
由 Romain Vimont 提交于
Prepare indentation for --render-expired-frames.
-
由 Romain Vimont 提交于
-
- 05 6月, 2019 6 次提交
-
-
由 Romain Vimont 提交于
In addition to the shortcut (Ctrl+o) to turn the device screen off, add a command-line argument to turn it off on start.
-
由 Romain Vimont 提交于
Preparse indentation for --turn-screen-off.
-
由 Romain Vimont 提交于
If --no-control is disabled, there is no need for a controller. It also avoids to power on the device on start if control is disabled.
-
由 Romain Vimont 提交于
Starting the server requires more and more parameters. For clarity, group them in a struct.
-
由 Romain Vimont 提交于
For clarity, store the flag resulting of the command-line options --no-control and --no-display into "control" and "display".
-
由 Romain Vimont 提交于
The flag is used only in the server_start() implementation, there is no need to store it in the structure.
-
- 03 6月, 2019 2 次提交
-
-
由 Romain Vimont 提交于
Only keep "turn device screen off" and POWER button. After we turn the device screen off (with Ctrl+o), turning it back on does not always work, and leaves the device in a weird state, where even the power button may not be sufficient: <https://github.com/Genymobile/scrcpy/issues/175#issuecomment-497946596> This is not an acceptable behavior, so disable the shortcut to turn the physical device screen on. We can use the POWER button (or Ctrl+p) instead.
-
由 Romain Vimont 提交于
This will reduce confusion between "power on" when the device is off and "turn device screen off" while mirroring.
-
- 01 6月, 2019 7 次提交
-
-
由 Romain Vimont 提交于
The condition "event->type == SDL_KEYDOWN" and the variable input_manager->controller are used many times. Replace them by local variables to reduce verbosity.
-
由 Romain Vimont 提交于
So that it also works on Windows.
-
由 Romain Vimont 提交于
Introduced by the previous commit.
-
由 Romain Vimont 提交于
Add two shortcuts: - Ctrl+o to turn the device screen off while mirroring - Ctrl+Shift+o to turn it back on On power on (either via the POWER key or BACK while screen is off), both the device screen and the mirror are turned on. <https://github.com/Genymobile/scrcpy/issues/175>
-
由 Romain Vimont 提交于
For consistency.
-
由 Yu-Chen Lin 提交于
Signed-off-by: NYu-Chen Lin <npes87184@gmail.com> Signed-off-by: NRomain Vimont <rom@rom1v.com>
-
由 Yu-Chen Lin 提交于
Use the same variable name in functions declaration and definition. Signed-off-by: NYu-Chen Lin <npes87184@gmail.com> Signed-off-by: NRomain Vimont <rom@rom1v.com>
-
- 31 5月, 2019 22 次提交
-
-
由 Romain Vimont 提交于
Synchronizing local and device clipboards in invisible. Add INFO logs on success.
-
由 Romain Vimont 提交于
The default behavior seems annoying. Fixes <https://github.com/Genymobile/scrcpy/issues/554>
-
由 Romain Vimont 提交于
Sometimes, it is not obvious whether a log is generated by the server or by the client. Prefix server logs for clarity.
-
由 Romain Vimont 提交于
After the recent refactorings, a "control event" is not necessarily an "event" (it may be a "command"). Similarly, the unique "device event" used to send the device clipboard content is more a "reponse" to the request from the client than an "event". Rename both to "message", and rename the message types to better describe their intent.
-
由 Romain Vimont 提交于
Correct return value type in handle_event
-
由 Yu-Chen Lin 提交于
handle_event return the type enum event_result not bool Signed-off-by: NYu-Chen Lin <npes87184@gmail.com>
-
由 Yu-Chen Lin 提交于
This will fix build warning in newer meson. Fix #540. Signed-off-by: NYu-Chen Lin <npes87184@gmail.com>
-
由 Romain Vimont 提交于
-
由 Romain Vimont 提交于
It was already possible to _paste_ (with Ctrl+v) the content of the computer clipboard on the device. Technically, it injects a sequence of events to generate the text. Add a new feature (Ctrl+Shift+v) to copy to the device clipboard instead, without injecting the content. Contrary to events injection, this preserves the UTF-8 content exactly, so the text is not broken by special characters. <https://github.com/Genymobile/scrcpy/issues/413>
-
由 Romain Vimont 提交于
Parsing a String from a serialized control event, encoded as length (2 bytes) + data, will be necessary in several events. Extract it to a separate method.
-
由 Romain Vimont 提交于
At least 2 bytes must be available to read the length of the String.
-
由 Romain Vimont 提交于
On Ctrl+C: - the client sends a GET_CLIPBOARD command to the device; - the device retrieve its current clipboard text and sends it in a GET_CLIPBOARD device event; - the client sets this text as the system clipboard text, so that it can be pasted in another application. Fixes <https://github.com/Genymobile/scrcpy/issues/145>
-
由 Romain Vimont 提交于
Create a separate component to send device events, managed by the controller.
-
由 Romain Vimont 提交于
Create a separate component to handle device events, managed by the controller.
-
由 Romain Vimont 提交于
Add the first device event, used to forward the device clipboard to the computer.
-
由 Romain Vimont 提交于
The socket used the device-to-computer direction to stream the video and the computer-to-device direction to send control events. Some features, like copy-paste from device to computer, require to send non-video data from the device to the computer. To make them possible, use two sockets: - one for streaming the video from the device to the client; - one for control/events in both directions.
-
由 Romain Vimont 提交于
A string is serialized as a length (2 bytes) followed by the string data (non nul-terminated). For now, it is used only once, but we will need to serialize strings in other events.
-
由 Romain Vimont 提交于
This will avoid to produce invalid UTF-8 results (although unlikely).
-
由 Romain Vimont 提交于
This will help to avoid truncating a UTF-8 string in the middle of a code point, producing an invalid UTF-8 result.
-
由 Romain Vimont 提交于
Add missing tests for serialization and deserialization of control events.
-
由 Romain Vimont 提交于
-
由 Romain Vimont 提交于
The framework class android.graphics.Point cannot be used in unit tests. Implement our own Point.
-