Implement Cursor Locking and new input focus checks for it

This commit is contained in:
Filoppi
2021-05-09 13:28:04 +03:00
parent ff08b85740
commit 3c7c2dfaa1
25 changed files with 400 additions and 15 deletions

View File

@ -23,10 +23,13 @@ public:
static Host* GetInstance();
bool GetRenderFocus();
bool GetRenderFullFocus();
bool GetRenderFullscreen();
void SetMainWindowHandle(void* handle);
void SetRenderHandle(void* handle);
void SetRenderFocus(bool focus);
void SetRenderFullFocus(bool focus);
void SetRenderFullscreen(bool fullscreen);
void ResizeSurface(int new_width, int new_height);
void RequestNotifyMapLoaded();
@ -42,6 +45,9 @@ private:
Host();
std::atomic<void*> m_render_handle{nullptr};
std::atomic<void*> m_main_window_handle{nullptr};
std::atomic<bool> m_render_to_main{false};
std::atomic<bool> m_render_focus{false};
std::atomic<bool> m_render_full_focus{false};
std::atomic<bool> m_render_fullscreen{false};
};