mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00:00
Disable server controller if --no-control
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.
This commit is contained in:
parent
ca767ba364
commit
acc4dcd520
5 changed files with 22 additions and 5 deletions
|
|
@ -95,6 +95,7 @@ execute_server(struct server *server, const struct server_params *params) {
|
|||
server->tunnel_forward ? "true" : "false",
|
||||
params->crop ? params->crop : "-",
|
||||
params->send_frame_meta ? "true" : "false",
|
||||
params->control ? "true" : "false",
|
||||
};
|
||||
return adb_execute(server->serial, cmd, sizeof(cmd) / sizeof(cmd[0]));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue