input: hold focus on mouse buttons

This commit is contained in:
vaxerski
2023-04-02 13:30:45 +01:00
parent c2b25f4701
commit 0fc145c52c
3 changed files with 57 additions and 0 deletions

View File

@@ -202,6 +202,10 @@ class CInputManager {
SLayerSurface* m_pFoundLSToFocus = nullptr;
CWindow* m_pFoundWindowToFocus = nullptr;
// for holding focus on buttons held
bool m_bFocusHeldByButtons = false;
bool m_bRefocusHeldByButtons = false;
// for releasing mouse buttons
std::list<uint32_t> m_lCurrentlyHeldButtons;