mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-22 11:23:27 -04:00
clang-format
This commit is contained in:
parent
cf51812a6f
commit
81fc72a5b8
@ -76,8 +76,7 @@ namespace MWInput
|
|||||||
winMgr->setCursorActive(true);
|
winMgr->setCursorActive(true);
|
||||||
|
|
||||||
// Check if this movement is from our recent mouse warp
|
// Check if this movement is from our recent mouse warp
|
||||||
bool isFromWarp = (mLastWarpX >= 0 && mLastWarpY >= 0
|
bool isFromWarp = (mLastWarpX >= 0 && mLastWarpY >= 0 && std::abs(mGuiCursorX - mLastWarpX) < 0.5f
|
||||||
&& std::abs(mGuiCursorX - mLastWarpX) < 0.5f
|
|
||||||
&& std::abs(mGuiCursorY - mLastWarpY) < 0.5f);
|
&& std::abs(mGuiCursorY - mLastWarpY) < 0.5f);
|
||||||
|
|
||||||
if (Settings::gui().mControllerMenus && !winMgr->getCursorVisible()
|
if (Settings::gui().mControllerMenus && !winMgr->getCursorVisible()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user