Add mouse shortcut to expand settings panel
Double-click on extra mouse button to open the settings panel (a single-click opens the notification panel). This is consistent with the keyboard shortcut MOD+n+n. PR #2264 <https://github.com/Genymobile/scrcpy/pull/2264> Signed-off-by: Romain Vimont <rom@rom1v.com>
This commit is contained in:
parent
6fa63cf6f8
commit
b4ee9f27ce
1 changed files with 5 additions and 1 deletions
|
@ -693,7 +693,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) {
|
||||||
|
if (event->clicks < 2) {
|
||||||
expand_notification_panel(im->controller);
|
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…
Reference in a new issue