Pressing 2x with the extra mouse button opens settings panel

This commit is contained in:
brunoais 2021-04-17 13:56:53 +01:00
parent cd533a9ab2
commit 9f39fcab3b

View file

@ -689,7 +689,11 @@ input_manager_process_mouse_button(struct input_manager *im,
return;
}
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;
}
if (control && event->button == SDL_BUTTON_RIGHT) {