Skip to content

Commit

Permalink
Pressing 2x with the extra mouse button opens settings panel
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoais committed Apr 19, 2021
1 parent cd533a9 commit 9f39fca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/src/input_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9f39fca

Please sign in to comment.