mirror of
https://github.com/OpenMW/openmw.git
synced 2025-11-03 13:26:39 +00:00
Ensure mouse really moved before unhiding cursor in controller menu
This commit is contained in:
parent
4adb9bd8ac
commit
f50c275133
1 changed files with 2 additions and 1 deletions
|
|
@ -72,7 +72,8 @@ namespace MWInput
|
||||||
static_cast<int>(mGuiCursorX), static_cast<int>(mGuiCursorY), mMouseWheel);
|
static_cast<int>(mGuiCursorX), static_cast<int>(mGuiCursorY), mMouseWheel);
|
||||||
|
|
||||||
winMgr->setCursorActive(true);
|
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.
|
// Unhide the cursor if it was hidden to show a controller tooltip.
|
||||||
winMgr->setControllerTooltip(false);
|
winMgr->setControllerTooltip(false);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue