Display and control your Android device
Enable mouse focus clickthrough in OTG mode
Romain Vimont5508c635cb11
diff --git a/app/src/usb/scrcpy_otg.c b/app/src/usb/scrcpy_otg.cindex f2e5d549..e27a3605 100644--- a/app/src/usb/scrcpy_otg.c+++ b/app/src/usb/scrcpy_otg.c@@ -62,6 +62,10 @@ scrcpy_otg(struct scrcpy_options *options) {atexit(SDL_Quit);+ if (!SDL_SetHint(SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH, "1")) {+ LOGW("Could not enable mouse focus clickthrough");+ }+bool ret = false;struct sc_hid_keyboard *keyboard = NULL;