port: only navigate with mouse if it's enabled in the dialog

This commit is contained in:
fgsfds committed 2024-05-14 21:06:16 +02:00
1 parent 85872d7e71
commit 548e2c1f0b
1 file changed
+2 -2
+2 -2
View File
@@ -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;
}