Fix restoring locked cursor state when window gains focus again

This commit is contained in:
2025-03-31 23:25:38 +03:00
parent d355f9eff5
commit c1f76abc22
5 changed files with 22 additions and 2 deletions

View File

@@ -119,7 +119,8 @@ public:
/// <summary>
/// Gets the current state of mouse relative mode.
/// </summary>
API_FUNCTION() FORCE_INLINE bool IsRelative() const
/// <param name="window">The window to check against, or null to check for any window.</param>
virtual API_FUNCTION() bool IsRelative(Window* window = nullptr) const
{
return _relativeMode;
}