Add option to turn on the camera torch

Add --camera-torch to turn on the camera torch when the camera starts.

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 968f178205
commit 553813e97d
11 changed files with 37 additions and 0 deletions

View file

@ -357,6 +357,9 @@ execute_server(struct sc_server *server,
if (params->camera_high_speed) {
ADD_PARAM("camera_high_speed=true");
}
if (params->camera_torch) {
ADD_PARAM("camera_torch=true");
}
if (params->show_touches) {
ADD_PARAM("show_touches=true");
}