fix: better cursor handling

This commit is contained in:
NOTPIES
2026-03-02 00:56:17 -03:00
parent 3fc220a10b
commit ee31d72f91
3 changed files with 40 additions and 18 deletions

View File

@@ -58,6 +58,9 @@ public:
void SetMouseGrabbed(bool grabbed);
bool IsMouseGrabbed() const { return m_mouseGrabbed; }
void SetCursorHiddenForUI(bool hidden);
bool IsCursorHiddenForUI() const { return m_cursorHiddenForUI; }
void SetWindowFocused(bool focused);
bool IsWindowFocused() const { return m_windowFocused; }
@@ -99,6 +102,8 @@ private:
bool m_mouseGrabbed;
bool m_cursorHiddenForUI;
bool m_windowFocused;
bool m_hasInput;