Skip to content

Display and control your Android device

Initialize mouse_input_mode explicitly

Romain Vimont5973d4cdd7a3
diff --git a/app/src/options.c b/app/src/options.c
index 525795ae..a75e584e 100644
--- a/app/src/options.c
+++ b/app/src/options.c
@@ -16,6 +16,7 @@ const struct scrcpy_options scrcpy_options_default = {
.codec = SC_CODEC_H264,
.record_format = SC_RECORD_FORMAT_AUTO,
.keyboard_input_mode = SC_KEYBOARD_INPUT_MODE_INJECT,
+ .mouse_input_mode = SC_MOUSE_INPUT_MODE_INJECT,
.port_range = {
.first = DEFAULT_LOCAL_PORT_RANGE_FIRST,
.last = DEFAULT_LOCAL_PORT_RANGE_LAST,