mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-12 02:59:00 +00:00
Implement Cursor Locking and new input focus checks for it
This commit is contained in:
parent
ff08b85740
commit
3c7c2dfaa1
25 changed files with 400 additions and 15 deletions
|
@ -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};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue