Also don't process controller menu axis navigation events for hidden menus

This commit is contained in:
Alexei Kotov 2025-08-14 13:47:18 +03:00
parent d05bb877fe
commit 37c4277b92

View File

@ -353,7 +353,7 @@ namespace MWInput
} }
MWGui::WindowBase* topWin = winMgr->getActiveControllerWindow(); MWGui::WindowBase* topWin = winMgr->getActiveControllerWindow();
if (topWin) if (topWin && topWin->isVisible())
{ {
// Update cursor state // Update cursor state
mGamepadGuiCursorEnabled = topWin->isGamepadCursorAllowed(); mGamepadGuiCursorEnabled = topWin->isGamepadCursorAllowed();