Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forward all clicks by default for UHID and AOA #4877

Open
wants to merge 3 commits into
base: window
Choose a base branch
from

Conversation

rom1v
Copy link
Collaborator

@rom1v rom1v commented Apr 23, 2024

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 #4727 (comment)

Add the possibility to only control the device with any keyboard and
mouse mode without screen mirroring.

This is different from OTG mode, which does not require USB debugging at
all. Here, the standard mode is used but with the possibility to disable
video playback.

By default, always open a window (even without video playback), and add
an option --no-window.

Fixes #4727 <#4727>
Fixes #4793 <#4793>
PR #4868 <#4868>
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 <#4727 (comment)>
@rom1v rom1v mentioned this pull request Apr 23, 2024
2 tasks
@rom1v
Copy link
Collaborator Author

rom1v commented Apr 23, 2024

Or maybe it would be more consistent to keep --forward-all-clicks as a boolean option, and add a new --no-forward-all-clicks:

# SDK mouse: forward all clicks is disabled
scrcpy
# UHID mouse: forward all clicks is enabled
scrcpy -M

# SDK mouse: force enabled
scrcpy --forward-all-clicks
# UHID mouse: force disabled
scrcpy -M --no-forward-all-clicks

What do you think?

@rom1v rom1v force-pushed the window branch 3 times, most recently from be9bf7d to e250628 Compare April 29, 2024 07:29
@rom1v rom1v force-pushed the window branch 3 times, most recently from 14348f4 to 063a833 Compare May 11, 2024 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant