Skip to content

Commit

Permalink
port: only navigate with mouse if it's enabled in the dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
fgsfdsfgs committed May 14, 2024
1 parent 85872d7 commit 548e2c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1361,8 +1361,8 @@ bool dialogChangeItemFocusWithMouse(struct menudialog *dialog, s32 mx, s32 my)
s32 curx, cury;
s32 colwidth = 0;

// only allow mouse control of player 1 menus
if (menu->playernum != 0) {
// only allow mouse control of player 1 menus; ignore mouse if navigating with keyboard
if (menu->playernum != 0 || !dialog->usingmouse) {
return false;
}

Expand Down

0 comments on commit 548e2c1

Please sign in to comment.