mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Implement Cursor Locking and new input focus checks for it
This commit is contained in:
@ -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};
|
||||
};
|
||||
|
Reference in New Issue
Block a user