2
0
mirror of https://github.com/Genymobile/scrcpy synced 2025-08-31 22:35:37 +00:00

Add compilation flag for USB features

This allows to disable HID/OTG features on Linux to build without
libusb.
This commit is contained in:
Romain Vimont
2022-02-12 12:38:40 +01:00
parent cc27771dd1
commit ca9e1a0514
3 changed files with 8 additions and 7 deletions

View File

@@ -1357,8 +1357,8 @@ parse_args_with_getopt(struct scrcpy_cli_args *args, int argc, char *argv[],
opts->keyboard_input_mode = SC_KEYBOARD_INPUT_MODE_HID;
break;
#else
LOGE("HID over AOA (-K/--hid-keyboard) is not supported on "
"this platform. It is only available on Linux.");
LOGE("HID over AOA (-K/--hid-keyboard) is disabled (or "
"unsupported on this platform).");
return false;
#endif
case OPT_MAX_FPS:
@@ -1376,8 +1376,8 @@ parse_args_with_getopt(struct scrcpy_cli_args *args, int argc, char *argv[],
opts->mouse_input_mode = SC_MOUSE_INPUT_MODE_HID;
break;
#else
LOGE("HID over AOA (-M/--hid-mouse) is not supported on this"
"platform. It is only available on Linux.");
LOGE("HID over AOA (-M/--hid-mouse) is disabled (or "
"unsupported on this platform).");
return false;
#endif
case OPT_LOCK_VIDEO_ORIENTATION:
@@ -1540,8 +1540,8 @@ parse_args_with_getopt(struct scrcpy_cli_args *args, int argc, char *argv[],
opts->otg = true;
break;
#else
LOGE("OTG mode (--otg) is not supported on this platform. It "
"is only available on Linux.");
LOGE("OTG mode (--otg) is disabled (or unsupported on this "
"platform).");
return false;
#endif
case OPT_V4L2_SINK: