1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-11-02 23:26:39 +00:00

Ensure mouse really moved before unhiding cursor in controller menu

This commit is contained in:
Andrew Lanzone 2025-07-16 00:25:45 -07:00
parent 4adb9bd8ac
commit f50c275133

View file

@ -72,7 +72,8 @@ namespace MWInput
static_cast<int>(mGuiCursorX), static_cast<int>(mGuiCursorY), mMouseWheel);
winMgr->setCursorActive(true);
if (Settings::gui().mControllerMenus && !winMgr->getCursorVisible())
if (Settings::gui().mControllerMenus && !winMgr->getCursorVisible()
&& (std::abs(arg.xrel) > 1 || std::abs(arg.yrel) > 1))
{
// Unhide the cursor if it was hidden to show a controller tooltip.
winMgr->setControllerTooltip(false);