1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-10-16 23:16:43 +00:00

Merge branch 'bmdhacks-lua-doublepress' into 'master'

Controller Input: Fix Lua dialogs from causing a double-press

See merge request OpenMW/openmw!4844
This commit is contained in:
Alexei Kotov 2025-08-14 15:45:43 +03:00
commit a049f3c3a8

View file

@ -255,7 +255,7 @@ namespace MWInput
winMgr->setCursorActive(false);
MWGui::WindowBase* topWin = winMgr->getActiveControllerWindow();
if (topWin)
if (topWin && topWin->isVisible())
{
// When the inventory tooltip is visible, we don't actually want the A button to
// act like a mouse button; it should act normally.
@ -353,7 +353,7 @@ namespace MWInput
}
MWGui::WindowBase* topWin = winMgr->getActiveControllerWindow();
if (topWin)
if (topWin && topWin->isVisible())
{
// Update cursor state
mGamepadGuiCursorEnabled = topWin->isGamepadCursorAllowed();