mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-23 15:52:41 +02:00
port: only navigate with mouse if it's enabled in the dialog
This commit is contained in:
1 parent
85872d7e71
commit
548e2c1f0b
1 file changed
+2
-2
+2
-2
@@ -1361,8 +1361,8 @@ bool dialogChangeItemFocusWithMouse(struct menudialog *dialog, s32 mx, s32 my)
|
|||||||
s32 curx, cury;
|
s32 curx, cury;
|
||||||
s32 colwidth = 0;
|
s32 colwidth = 0;
|
||||||
|
|
||||||
// only allow mouse control of player 1 menus
|
// only allow mouse control of player 1 menus; ignore mouse if navigating with keyboard
|
||||||
if (menu->playernum != 0) {
|
if (menu->playernum != 0 || !dialog->usingmouse) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user