Add option to specify the camera zoom

Add --camera-zoom to specify the camera zoom.

PR #6243 <https://github.com/Genymobile/scrcpy/pull/6243>

Signed-off-by: Romain Vimont <rom@rom1v.com>
This commit is contained in:
Tommie 2025-07-20 11:50:16 -04:00 committed by Romain Vimont
parent 1018f3e9be
commit af355804ef
12 changed files with 79 additions and 1 deletions

View file

@ -360,6 +360,10 @@ execute_server(struct sc_server *server,
if (params->camera_torch) {
ADD_PARAM("camera_torch=true");
}
if (params->camera_zoom) {
VALIDATE_STRING(params->camera_zoom);
ADD_PARAM("camera_zoom=%s", params->camera_zoom);
}
if (params->show_touches) {
ADD_PARAM("show_touches=true");
}