mirror of
https://github.com/Genymobile/scrcpy
synced 2025-08-31 14:25:56 +00:00
Forward all clicks by default for UHID/AOA
By default, only the left click is forwarded to the device, and secondary clicks trigger shortcuts (the behavior can be configured by --mouse-bind=xxxx). But when the mouse mode is relative (AOA and UHID modes), forward all clicks by default. This makes more sense since the cursor is handled on the device side, the user expects all mouse buttons to be forwarded. Refs <https://github.com/Genymobile/scrcpy/issues/4727#issuecomment-2069869750> PR #5022 <https://github.com/Genymobile/scrcpy/pull/5022>
This commit is contained in:
@@ -753,6 +753,7 @@ sc_input_manager_process_mouse_button(struct sc_input_manager *im,
|
||||
|
||||
enum sc_mouse_binding binding =
|
||||
sc_input_manager_get_binding(&im->mouse_bindings, event->button);
|
||||
assert(binding != SC_MOUSE_BINDING_AUTO);
|
||||
switch (binding) {
|
||||
case SC_MOUSE_BINDING_DISABLED:
|
||||
// ignore click
|
||||
|
Reference in New Issue
Block a user