-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
how to Disable Right Click to exit #732
Comments
On Android, right click is rarely used. Typically, you get contect menu with long left-click. That's why in scrcpy right-click is mapped to BACK. Why do you need right-click? |
can i remapped right-click? So i need to change mappedin scrcpy from back to nothing |
No, you can't without modifying the source code. |
@rom1v please I need a solution |
Basically, let right-click being forwarded to the device: diff --git a/app/src/input_manager.c b/app/src/input_manager.c
index 5258bed..58a1325 100644
--- a/app/src/input_manager.c
+++ b/app/src/input_manager.c
@@ -409,10 +409,6 @@ input_manager_process_mouse_button(struct input_manager *input_manager,
const SDL_MouseButtonEvent *event,
bool control) {
if (event->type == SDL_MOUSEBUTTONDOWN) {
- if (control && event->button == SDL_BUTTON_RIGHT) {
- press_back_or_turn_screen_on(input_manager->controller);
- return;
- }
if (control && event->button == SDL_BUTTON_MIDDLE) {
action_home(input_manager->controller, ACTION_DOWN | ACTION_UP);
return; But in practice, it seems to do the same action as left click in many apps. |
I have download scrcpy-master and edit in input_manager.c and change BUTTON RIGHT event to this input_manager_process_mouse_button(struct input_manager *input_manager,
const SDL_MouseButtonEvent *event,
bool control) {
if (event->type == SDL_MOUSEBUTTONDOWN) {
- if (control && event->button == SDL_BUTTON_RIGHT) {
- press_back_or_turn_screen_on(input_manager->controller);
- return;
- }
if (control && event->button == SDL_BUTTON_MIDDLE) {
action_home(input_manager->controller, ACTION_DOWN | ACTION_UP);
return; but now i dont now how to run it with scrcpy can you help me |
(the
Follow BUILD. |
yes i remove - |
i use windows 10 |
Ref #1302 |
I wish there was some way to disable the right-click and scroll-wheel-click always going back and closing whatever I'm working on. It drives me CRAZY and makes scrcpy almost unusable for me. I guess I have an overly sensitive mouse but I constantly bump the middle mouse scroll-wheel button and then whatever I'm in the middle of doing instantly vanishes or is closed, sometimes to detrimental effect, with my losing data/information/work. I'm about to just take my mouse apart and physically remove the sensors/switches for the right-click and middle mouse scroll-wheel buttons it's driving me so crazy lol. I can't believe there's not a simple override for this feature :( |
Well, I totally agree, right click is regular shot in the head, I hadn't
bothered to look for a workaround. And as far as mousing, because I
roasted my 5th screen so I'm using scrcpy or I can't do anything, the
scrolling and clicking, get's far more a chore than a finger...
But, I stay away from the droid interface if I can help it, it reminds me
of lunchbox mac's, except it's 500 islands direction like unix binary
compatibility was... And the silly vendors packing on their extra's some
of which is nearly impossible to use in the mouse situation..
Having done OTG, I can't remember, but I think the right button was doom
that way too.
…On Sun, Aug 1, 2021 at 11:05 PM richaardvark ***@***.***> wrote:
I wish there was some way to disable the right-click and
scroll-wheel-click always going back and closing whatever I'm working on.
It drives me CRAZY and makes scrcpy almost unusable for me. I guess I have
an overly sensitive mouse but I constantly bump the middle mouse
scroll-wheel button and then whatever I'm in the middle of doing instantly
vanishes or is closed, sometimes to detrimental effect, with my losing
data/information/work. I can't believe there's not a simple override for
this feature :(
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#732 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQVTVJDB6OWOFVQ2GW4Z6LT2YRQDANCNFSM4IMOSQOA>
.
|
hello !
how to Disable Right Click to exit i need to use right click without close anything
The text was updated successfully, but these errors were encountered: