mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-02 22:29:25 +00:00
Pressing 2x with the extra mouse button opens settings panel
This commit is contained in:
parent
cd533a9ab2
commit
9f39fcab3b
1 changed files with 5 additions and 1 deletions
|
@ -689,7 +689,11 @@ input_manager_process_mouse_button(struct input_manager *im,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (control && event->button == SDL_BUTTON_X2 && down) {
|
if (control && event->button == SDL_BUTTON_X2 && down) {
|
||||||
expand_notification_panel(im->controller);
|
if (event->clicks < 2) {
|
||||||
|
expand_notification_panel(im->controller);
|
||||||
|
} else {
|
||||||
|
expand_settings_panel(im->controller);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (control && event->button == SDL_BUTTON_RIGHT) {
|
if (control && event->button == SDL_BUTTON_RIGHT) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue