-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Disable shortcuts, especially mouse's shortcuts #1302
Comments
Another reason to forward right-click: #898 (comment) |
I suggest adding the following options:
with
I'm a bit annoyed because by default, right-click injects BACK if screen is on, but POWER if screen is off. I don't know how to expose this feature with the configuration. Should I make it possible for any configuration? Even for middle key? With an explicit configuration ( |
@rom1v I don't like the idea of Home being an option as Android maps the Home button already. Ideally I'd like scrcpy to simply passthrough keyboard and mouse events as if they were bluetooth devices connected directly to the device. You might be able to do additional remapping through Android itself and applications like External Keyboard Helper. Regarding your word choice, I'd prefer "passthrough" to "inject". Edit: Nevermind - you want "home" to navigate to home, not bind to the key. I'm fine with providing more options if the author is. |
But it's convenient to have it accessible from the mouse (less than right-click for BACK, but still). Currently, right-click is mapped to BACK and middle-click to HOME.
The goal of the option I'd like to add is to forward right and middle clicks to the device. (Unfortunately, event injection does not behave as a bluetooth device though, it's not at the same level.)
👍 (what about "forward"?) If right-click is forwarded, do you think it should still power on the device if it is off? |
Or maybe we could keep things simple: |
I've just implemented an option on a separate branch (
Could you please test it? For windows users, take both For other platforms, take
|
Merged into |
scrcpy v1.17 Changes since v1.16: - Fix errors on Android 11 (Genymobile#1468) - Add --encoder option (Genymobile#1810, Genymobile#1827) - Add --forward-all-clicks option (Genymobile#1302, Genymobile#1613) - Add --legacy-paste option (Genymobile#1750, Genymobile#1771) - Workaround screen off/on issue on exit (Genymobile#1670) - Rework console/noconsole versions on Windows (Genymobile#1875, Genymobile#1988) - Terminate server properly without killing it on close (Genymobile#1992) - List available shortcut keys on error (Genymobile#1681) - Upgrade platform-tools to 30.0.5 (adb) in Windows releases - Upgrade SDL to 2.0.14 in Windows releases
it don't work on otg mode, srry about my english i'm brasilian and still learning |
In OTG mode, all clicks are always forwarded. |
Is your feature request related to a problem? Please describe.
I can't play a game (mindustry) without remapping button
Describe the solution you'd like
Disable shortcuts, especially for mouse, so that right-clicking does correct things in-game.
Describe alternatives you've considered
The game supports remapping buttons, but I feel like disable shortcuts should be useful in other games, too.
Additional context
Here is the mindustry github
Also, I think this feature might not be that hard, I've never used
adb
, but if you're too busy could you guide me? I might be able to have a look, learn them, and create a PR for this. Thank you!The text was updated successfully, but these errors were encountered: