mirror of
https://github.com/Genymobile/scrcpy
synced 2025-08-31 06:15:25 +00:00
Disable controls on --no-mirror
If mirroring is disabled, control must also be disabled. PR #3978 <https://github.com/Genymobile/scrcpy/pull/3978>
This commit is contained in:
@@ -2041,6 +2041,15 @@ parse_args_with_getopt(struct scrcpy_cli_args *args, int argc, char *argv[],
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_USB
|
||||
if (!opts->mirror && opts->control && !opts->otg) {
|
||||
#else
|
||||
if (!opts->mirror && opts->control) {
|
||||
#endif
|
||||
LOGD("Mirroring is disabled, force --no-control");
|
||||
opts->control = false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user