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:
commit
a049f3c3a8
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue