In relative mouse modes (when the cursor appears on the device), it
makes more sense to forward all clicks (disable HOME/BACK shortcuts on
secondary clicks).
Transform the boolean option --forward-all-clicks into a 3-state option:
- --forward-all-clicks=true or --forward-all-clicks: enable
- --forward-all-clicks=false: disable
- --forward-all-clicks=auto (default): enable only for UHID and AOA
That way, by default, all clicks are forwarded with `scrcpy -M`.
Refs <https://github.com/Genymobile/scrcpy/issues/4727#issuecomment-2069869750>
@ -165,7 +165,14 @@ Do not attempt to use "adb reverse" to connect to the device.
.TP
.TP
.B\-\-forward\-all\-clicks
.B\-\-forward\-all\-clicks
By default, right-click triggers BACK (or POWER on) and middle-click triggers HOME. This option disables these shortcuts and forward the clicks to the device instead.
Two behaviors are possible: either right-click triggers BACK (or POWER on) and middle-click triggers HOME, or these shortcuts are disabled and the clicks are forwarded to the device.
Possible values are "auto" (forward all clicks only for UHID and AOA mouse modes), "true" (fordward all clicks) and "false" (enable shortcuts for right-click and middle-click).
Default is "auto".
Passing the option without argument is equivalent to passing "true".